diff options
author | Xiaomeng Tong <xiam0nd.tong@gmail.com> | 2022-04-05 11:05:56 +0300 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2022-05-21 19:41:29 +0300 |
commit | 1b0070aca35ed70f9cc6f97b5d9f7f98cb4771fd (patch) | |
tree | 6131e60565457abe87751a601005c03f76651753 /drivers/mailbox/tegra-hsp.c | |
parent | 262190a8ca2b1e1ec75b8a4f1c7f07e585facd6f (diff) | |
download | linux-1b0070aca35ed70f9cc6f97b5d9f7f98cb4771fd.tar.xz |
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>
Diffstat (limited to 'drivers/mailbox/tegra-hsp.c')
-rw-r--r-- | drivers/mailbox/tegra-hsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/mailbox/tegra-hsp.c index 78f7265039c6..a55d6df99697 100644 --- a/drivers/mailbox/tegra-hsp.c +++ b/drivers/mailbox/tegra-hsp.c @@ -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); } |