diff options
author | wangbo <wdjjwb@163.com> | 2019-01-09 20:10:33 +0800 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2019-02-25 08:40:58 +0100 |
commit | 7e926f42c64dccfa44229d7bbe89bf5e2f4183fe (patch) | |
tree | 4ddfc7ba7f58c849103e73f7ece67d378cffbd7e /drivers/mmc | |
parent | 69d91ed1469b49b4d3b5a9ac40e4abc453698dc2 (diff) | |
download | linux-stable-7e926f42c64dccfa44229d7bbe89bf5e2f4183fe.tar.gz linux-stable-7e926f42c64dccfa44229d7bbe89bf5e2f4183fe.tar.bz2 linux-stable-7e926f42c64dccfa44229d7bbe89bf5e2f4183fe.zip |
mmc:sdio: Remove unneeded variable ret
In sdio_bus_remove the variable is unneeded,remove it now.
Signed-off-by: wangbo <wang.bo116@zte.com.cn>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/sdio_bus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index b6d8203e46eb..62b0f5ecc7f7 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c @@ -179,7 +179,6 @@ static int sdio_bus_remove(struct device *dev) { struct sdio_driver *drv = to_sdio_driver(dev->driver); struct sdio_func *func = dev_to_sdio_func(dev); - int ret = 0; /* Make sure card is powered before invoking ->remove() */ if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD) @@ -205,7 +204,7 @@ static int sdio_bus_remove(struct device *dev) dev_pm_domain_detach(dev, false); - return ret; + return 0; } static const struct dev_pm_ops sdio_bus_pm_ops = { |