Skip to content

Commit 1b0070a

Browse files
Xiaomeng TongJassiBrar
authored andcommitted
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>
1 parent 262190a commit 1b0070a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mailbox/tegra-hsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ static int __maybe_unused tegra_hsp_resume(struct device *dev)
804804
struct tegra_hsp_doorbell *db;
805805

806806
list_for_each_entry(db, &hsp->doorbells, list) {
807-
if (db && db->channel.chan)
807+
if (db->channel.chan)
808808
tegra_hsp_doorbell_startup(db->channel.chan);
809809
}
810810

0 commit comments

Comments
 (0)