mmc: core: simplify return code
authortcharding <me@tobin.cc>
Wed, 15 Mar 2017 08:48:04 +0000 (19:48 +1100)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:37:07 +0000 (15:37 -0500)
commit362ea9b44bd715fc422f0a2f2914269515cb3461
tree4daf299107effb0b70235cba05a297b3cbe357ec
parent4c754c6d452a9571cbd4bf2924efe865f40f812c
mmc: core: simplify return code

File contains multiple functions doing variations on the same thing,
sdio_readb(), sdio_writeb()f, sdio_readw(), sdio_writew()
etc. Although the functions have very similar logic the code is laid
out in a variety of ways. This makes it overly complicated to
read. There is a already a nice clean chunk of code, if we use this
format for all instances then we will have cleaned up the code,
reduced the line count and lessened the cognitive load required while
reading. Less lines equals less bugs.

Pick the most simple and clear code flow and change all functions to
be the same.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
(cherry picked from commit 8e11b284eaa86863f700216e4d3c87e7d7b3f44c)
drivers/mmc/core/sdio_io.c