summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/mmc_ops.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-08-20 23:39:09 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2017-08-30 15:03:39 +0200
commit61fe0e2bdac51f94f9114ff1b2caef1c75db3679 (patch)
treec7aa6766e3d5306bfc0e73a40344af3d69e7bd1d /drivers/mmc/core/mmc_ops.h
parent627c3ccfb46ada2583eac434127ad5d75e1ac33c (diff)
downloadop-kernel-dev-61fe0e2bdac51f94f9114ff1b2caef1c75db3679.zip
op-kernel-dev-61fe0e2bdac51f94f9114ff1b2caef1c75db3679.tar.gz
mmc: block: Move duplicate check
mmc_blk_ioctl() calls either mmc_blk_ioctl_cmd() or mmc_blk_ioctl_multi_cmd() and each of these make the same check. Factor it into a new helper function, call it on both branches of the switch() statement and save a chunk of duplicate code. Cc: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/mmc_ops.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud