summaryrefslogtreecommitdiff
path: root/drivers/sbus
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-02-01 13:47:57 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2017-02-14 09:07:59 +0100
commit169f03a064c230de6d715bdd62112eb12256fce3 (patch)
tree237a211bce3b429b0511040dac6f80b2cb33fe23 /drivers/sbus
parent9491be5ff06ff08d61e6a8d767382ea0037a6f38 (diff)
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/sbus')
0 files changed, 0 insertions, 0 deletions