diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2017-08-20 23:39:09 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-08-30 15:03:39 +0200 |
commit | 61fe0e2bdac51f94f9114ff1b2caef1c75db3679 (patch) | |
tree | c7aa6766e3d5306bfc0e73a40344af3d69e7bd1d /.gitignore | |
parent | 627c3ccfb46ada2583eac434127ad5d75e1ac33c (diff) |
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 '.gitignore')
0 files changed, 0 insertions, 0 deletions