Commit 1b0070ac authored by Xiaomeng Tong's avatar Xiaomeng Tong Committed by Jassi Brar

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: default avatarXiaomeng Tong <xiam0nd.tong@gmail.com>
Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
parent 262190a8
...@@ -804,7 +804,7 @@ static int __maybe_unused tegra_hsp_resume(struct device *dev) ...@@ -804,7 +804,7 @@ static int __maybe_unused tegra_hsp_resume(struct device *dev)
struct tegra_hsp_doorbell *db; struct tegra_hsp_doorbell *db;
list_for_each_entry(db, &hsp->doorbells, list) { list_for_each_entry(db, &hsp->doorbells, list) {
if (db && db->channel.chan) if (db->channel.chan)
tegra_hsp_doorbell_startup(db->channel.chan); tegra_hsp_doorbell_startup(db->channel.chan);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment