Commit 4d195dc
scsi: ufs: Remove redundant checks of !hba in suspend/resume callbacks
Runtime and system suspend/resume can only come after hba probe invokes
platform_set_drvdata(pdev, hba), meaning hba cannot be NULL in these PM
callbacks, so remove the checks of !hba.
Link: https://lore.kernel.org/r/1614145010-36079-4-git-send-email-cang@codeaurora.org
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 4a79157 commit 4d195dc
1 file changed
Lines changed: 0 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
| |||
8978 | 8976 | | |
8979 | 8977 | | |
8980 | 8978 | | |
8981 | | - | |
8982 | | - | |
8983 | | - | |
8984 | | - | |
8985 | | - | |
8986 | 8979 | | |
8987 | 8980 | | |
8988 | 8981 | | |
| |||
9034 | 9027 | | |
9035 | 9028 | | |
9036 | 9029 | | |
9037 | | - | |
9038 | | - | |
9039 | | - | |
9040 | | - | |
9041 | | - | |
9042 | | - | |
9043 | | - | |
9044 | | - | |
9045 | 9030 | | |
9046 | 9031 | | |
9047 | 9032 | | |
| |||
9074 | 9059 | | |
9075 | 9060 | | |
9076 | 9061 | | |
9077 | | - | |
9078 | | - | |
9079 | | - | |
9080 | 9062 | | |
9081 | 9063 | | |
9082 | 9064 | | |
| |||
9115 | 9097 | | |
9116 | 9098 | | |
9117 | 9099 | | |
9118 | | - | |
9119 | | - | |
9120 | | - | |
9121 | 9100 | | |
9122 | 9101 | | |
9123 | 9102 | | |
| |||
0 commit comments