mmc: slot-gpio: Refactor mmc_gpio_alloc()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 29 Sep 2021 11:17:56 +0000 (14:17 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Oct 2021 08:21:20 +0000 (10:21 +0200)
commit4877b81f0fa2a3b1eb80541e49790683926104c9
treefdf5592e55b533da581cb9ccb2c46d93e21853f9
parent0a264389212ab7193cd0166b57a9bb830fcc4fd8
mmc: slot-gpio: Refactor mmc_gpio_alloc()

Refactor mmc_gpio_alloc() to drop unneeded indentation level
and double condition. This increases readability of the code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210929111757.52625-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/slot-gpio.c