]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mxcmmc: check the return value of mxcmci_finish_data
authorShawn Lin <shawn.lin@rock-chips.com>
Thu, 6 Jul 2017 08:09:12 +0000 (16:09 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:28 +0000 (14:01 +0200)
commit37fdd989a58879ec1372f6a08a1063231413fb2b
treef985caf52092053278f8908c1797e2724fd6049e
parent4b56adbd1b3b2cc8d0501e754845118c5d57a45d
mmc: mxcmmc: check the return value of mxcmci_finish_data

We got a compile warning for mxcmmc,

drivers/mmc/host/mxcmmc.c: In function 'mxcmci_data_done':
drivers/mmc/host/mxcmmc.c:661:6: warning: variable 'data_error' set but
not used [-Wunused-but-set-variable]

The easiest method is to remove the data_error. But looking into
the code closely, I think we should check the return value of
mxcmci_finish_data as if it got data->error(the same as data_error),
we shouldn't try to read the response.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mxcmmc.c