diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2017-08-21 00:39:09 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-08-30 16:03:39 +0300 |
commit | 61fe0e2bdac51f94f9114ff1b2caef1c75db3679 (patch) | |
tree | c7aa6766e3d5306bfc0e73a40344af3d69e7bd1d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 627c3ccfb46ada2583eac434127ad5d75e1ac33c (diff) | |
download | linux-61fe0e2bdac51f94f9114ff1b2caef1c75db3679.tar.xz |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions