Commit 7e926f42 authored by wangbo's avatar wangbo Committed by Ulf Hansson

mmc:sdio: Remove unneeded variable ret

In sdio_bus_remove the variable is unneeded,remove it now.
Signed-off-by: default avatarwangbo <wang.bo116@zte.com.cn>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 69d91ed1
...@@ -179,7 +179,6 @@ static int sdio_bus_remove(struct device *dev) ...@@ -179,7 +179,6 @@ static int sdio_bus_remove(struct device *dev)
{ {
struct sdio_driver *drv = to_sdio_driver(dev->driver); struct sdio_driver *drv = to_sdio_driver(dev->driver);
struct sdio_func *func = dev_to_sdio_func(dev); struct sdio_func *func = dev_to_sdio_func(dev);
int ret = 0;
/* Make sure card is powered before invoking ->remove() */ /* Make sure card is powered before invoking ->remove() */
if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD) if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD)
...@@ -205,7 +204,7 @@ static int sdio_bus_remove(struct device *dev) ...@@ -205,7 +204,7 @@ static int sdio_bus_remove(struct device *dev)
dev_pm_domain_detach(dev, false); dev_pm_domain_detach(dev, false);
return ret; return 0;
} }
static const struct dev_pm_ops sdio_bus_pm_ops = { static const struct dev_pm_ops sdio_bus_pm_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment