summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-iproc.c
diff options
context:
space:
mode:
authorMathieu Malaterre2018-05-16 21:20:20 +0200
committerUlf Hansson2018-05-21 10:57:59 +0200
commitb25b750df99bcba29317d3f9d9f93c4ec58890e6 (patch)
tree8c935897ab184a76bea945aaf2c60371f632a8bf /drivers/mmc/host/sdhci-iproc.c
parentLinux v4.17-rc3 (diff)
downloadkernel-qcow2-linux-b25b750df99bcba29317d3f9d9f93c4ec58890e6.tar.gz
kernel-qcow2-linux-b25b750df99bcba29317d3f9d9f93c4ec58890e6.tar.xz
kernel-qcow2-linux-b25b750df99bcba29317d3f9d9f93c4ec58890e6.zip
mmc: block: propagate correct returned value in mmc_rpmb_ioctl
In commit 97548575bef3 ("mmc: block: Convert RPMB to a character device") a new function `mmc_rpmb_ioctl` was added. The final return is simply returning a value of `0` instead of propagating the correct return code. Discovered during a compilation with W=1, silence the following gcc warning drivers/mmc/core/block.c:2470:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Signed-off-by: Mathieu Malaterre <malat@debian.org> Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com> Fixes: 97548575bef3 ("mmc: block: Convert RPMB to a character device") Cc: stable@vger.kernel.org # v4.15+ Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-iproc.c')
0 files changed, 0 insertions, 0 deletions