]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: simplify return code
authortcharding <me@tobin.cc>
Wed, 15 Mar 2017 08:48:04 +0000 (19:48 +1100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:24 +0000 (21:41 +0200)
commitee53f141d688a3c9e0349fe67ce20f6e3d669470
tree83b6c8e787151f1b6b653ffe4b66bfb7c15c685b
parent6c940422cbd2f1d0faa8f79a006b446645f3b0a9
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>
drivers/mmc/core/sdio_io.c