mailbox: remove an unneeded NULL check on list iterator

The list iterator is always non-NULL so it doesn't need to be checked.
Thus just remove the unnecessary NULL check.

Signed-off-by: Xiaomeng Tong <xiam0nd.tong@gmail.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
This commit is contained in:
Xiaomeng Tong 2022-04-05 16:05:56 +08:00 committed by Jassi Brar
parent 262190a8ca
commit 1b0070aca3
1 changed files with 1 additions and 1 deletions

View File

@ -804,7 +804,7 @@ static int __maybe_unused tegra_hsp_resume(struct device *dev)
struct tegra_hsp_doorbell *db;
list_for_each_entry(db, &hsp->doorbells, list) {
if (db && db->channel.chan)
if (db->channel.chan)
tegra_hsp_doorbell_startup(db->channel.chan);
}