Skip to content

Commit

Permalink
mmc:sdio: Remove unneeded variable ret
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
wangbo authored and Ulf Hansson committed Feb 25, 2019
1 parent 69d91ed commit 7e926f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mmc/core/sdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 = {
Expand Down

0 comments on commit 7e926f4

Please sign in to comment.