Skip to content
Commit fc02e2b5 authored by Zhen Lei's avatar Zhen Lei Committed by Ulf Hansson
Browse files

mmc: core: Normalize the error handling branch in sd_read_ext_regs()



Let's use pr_err() to output the error messages and let's extend a comment
to clarify why returning 0 (success) in one case make sense.

Fixes: c784f927 ("mmc: core: Read the SD function extension registers for power management")
Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
[Ulf: Clarified the comment and the commit-msg]
Link: https://lore.kernel.org/r/20221130134920.2109-1-thunder.leizhen@huawei.com


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 04280473
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment