]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Normalize the error handling branch in sd_read_ext_regs()
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 30 Nov 2022 13:49:20 +0000 (21:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:25 +0000 (13:32 +0100)
commitcc2dc151c8d58a34e590350ccf4af484f0024230
tree2c9b3123209798e231e0212741eccd9a5fce1138
parent24738448be29962ae666b161e10c993e20e62dde
mmc: core: Normalize the error handling branch in sd_read_ext_regs()

[ Upstream commit bf282d745e80fd32193c2ca30c781ddb6a48f308 ]

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: 1957980b0e9b ("mmc: core: Read the SD function extension registers for power management")
Signed-off-by: Zhen 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: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/core/sd.c