Skip to content

Commit 7e926f4

Browse files
wdjjwbstorulf
authored andcommitted
mmc:sdio: Remove unneeded variable ret
In sdio_bus_remove the variable is unneeded,remove it now. Signed-off-by: wangbo <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent 69d91ed commit 7e926f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/mmc/core/sdio_bus.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ static int sdio_bus_remove(struct device *dev)
179179
{
180180
struct sdio_driver *drv = to_sdio_driver(dev->driver);
181181
struct sdio_func *func = dev_to_sdio_func(dev);
182-
int ret = 0;
183182

184183
/* Make sure card is powered before invoking ->remove() */
185184
if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD)
@@ -205,7 +204,7 @@ static int sdio_bus_remove(struct device *dev)
205204

206205
dev_pm_domain_detach(dev, false);
207206

208-
return ret;
207+
return 0;
209208
}
210209

211210
static const struct dev_pm_ops sdio_bus_pm_ops = {

0 commit comments

Comments
 (0)