diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2017-02-01 13:47:57 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-02-14 09:07:59 +0100 |
commit | 169f03a064c230de6d715bdd62112eb12256fce3 (patch) | |
tree | 237a211bce3b429b0511040dac6f80b2cb33fe23 /drivers/atm/iphase.h | |
parent | 9491be5ff06ff08d61e6a8d767382ea0037a6f38 (diff) | |
download | linux-169f03a064c230de6d715bdd62112eb12256fce3.tar.gz linux-169f03a064c230de6d715bdd62112eb12256fce3.tar.bz2 linux-169f03a064c230de6d715bdd62112eb12256fce3.zip |
mmc: block: return errorcode from mmc_sd_num_wr_blocks()
mmc_sd_num_wr_blocks() has an interesting construction that
saves one return argument by casting (u32)-1 as error code
if something goes wrong.
This is however a bit confusing when the normal kernel
pattern is to return an int error code on success.
So instead pass a variable "blocks" that the function can
fill in with the number of successfully transferred blocks
and return an integer as error code.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[Ulf: Changed a return code to -EIO, reported by Dan Carpenter and fixed
by Linus Walleij]
Diffstat (limited to 'drivers/atm/iphase.h')
0 files changed, 0 insertions, 0 deletions