diff options
author | 2022-04-05 16:05:56 +0800 | |
---|---|---|
committer | 2022-05-21 11:41:29 -0500 | |
commit | 1b0070aca35ed70f9cc6f97b5d9f7f98cb4771fd (patch) | |
tree | 6131e60565457abe87751a601005c03f76651753 /drivers/mailbox | |
parent | mailbox: imx: remove redundant initializer (diff) | |
download | linux-dev-1b0070aca35ed70f9cc6f97b5d9f7f98cb4771fd.tar.xz linux-dev-1b0070aca35ed70f9cc6f97b5d9f7f98cb4771fd.zip |
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')
-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); } |