diff options
| author | Artem Shimko <a.shimko.dev@gmail.com> | 2026-05-22 10:31:31 +0300 |
|---|---|---|
| committer | Ulf Hansson <ulfh@kernel.org> | 2026-05-29 14:48:35 +0200 |
| commit | 423ab671bb921206bab25ffe61adc5da98a64e6c (patch) | |
| tree | dcef977d735e2b63d8fa611e664ee3942aa2b2f8 /scripts/Makefile.thinlto | |
| parent | 906d715cae80593470926f9fe1105d7d4a1ce14b (diff) | |
mmc: sdhci-of-dwcmshc: remove redundant IS_ERR() check
The clk_disable_unprepare() function has internal protection against
ERR_PTR and NULL pointers (IS_ERR_OR_NULL). Remove the redundant
IS_ERR() check for bus_clk in dwcmshc_suspend() and in the error
path of dwcmshc_resume() to simplify the code.
Note that the clk_prepare_enable() call in dwcmshc_resume() must retain
its IS_ERR() check because clk_prepare() only handles NULL pointers,
not ERR_PTR.
No functional change intended.
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Artem Shimko <a.shimko.dev@gmail.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
