Skip to content

Commit eda910e

Browse files
Dolev RavivChristoph Hellwig
authored andcommitted
scsi: ufs: fix static checker warning in __ufshcd_setup_clocks
This patch fixes newly introduced static checker warning in __ufshcd_setup_clocks, introduced by UFS power management series. Warning: drivers/scsi/ufs/ufshcd.c:4474 __ufshcd_setup_clocks() warn: we tested 'ret' before and it was 'false' To fix it we remove the (!ret) from the condition. Signed-off-by: Dolev Raviv <[email protected]> Reviewed-by: Maya Erez <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 758581b commit eda910e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/ufs/ufshcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4473,7 +4473,7 @@ static int __ufshcd_setup_clocks(struct ufs_hba *hba, bool on,
44734473
if (!IS_ERR_OR_NULL(clki->clk) && clki->enabled)
44744474
clk_disable_unprepare(clki->clk);
44754475
}
4476-
} else if (!ret && on) {
4476+
} else if (on) {
44774477
spin_lock_irqsave(hba->host->host_lock, flags);
44784478
hba->clk_gating.state = CLKS_ON;
44794479
spin_unlock_irqrestore(hba->host->host_lock, flags);

0 commit comments

Comments
 (0)