]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: meson-gx: minor improvements in meson_mmc_set_ios
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 7 Feb 2017 21:34:06 +0000 (22:34 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Feb 2017 08:10:54 +0000 (09:10 +0100)
commit3d45c86f92be4cd22b4d2332a5cc280e20efedc6
treefb97a6d8e30e7e99d5d386e9ea5e7d361c57482a
parenta4c38c8dba98643602ae08c0867425b20a3c204b
mmc: meson-gx: minor improvements in meson_mmc_set_ios

val isn't used in the switch clause and afterwards there's an
identical statement. So remove it.

In case of an unexpected bus width the error message indicates
the intention to set the bus width to 4 and to go on.
So remove the return statement. This return statement also
conflicts with "setting to 4" because nothing would be set
actually before returning. 4bit bus width are chosen as
default as the vendor driver does it too.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c