All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc:sdio: Remove unneeded variable ret
@ 2019-01-09 12:10 wangbo
  2019-01-14 11:44 ` Ulf Hansson
  0 siblings, 1 reply; 2+ messages in thread
From: wangbo @ 2019-01-09 12:10 UTC (permalink / raw)
  To: linux-kernel; +Cc: ulf.hansson, linux-mmc, wang.bo116

In sdio_bus_remove the variable is unneeded,remove it now.

Signed-off-by: wangbo <wang.bo116@zte.com.cn>
---
 drivers/mmc/core/sdio_bus.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c
index b6d8203..62b0f5e 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 = {
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mmc:sdio: Remove unneeded variable ret
  2019-01-09 12:10 [PATCH] mmc:sdio: Remove unneeded variable ret wangbo
@ 2019-01-14 11:44 ` Ulf Hansson
  0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2019-01-14 11:44 UTC (permalink / raw)
  To: wangbo; +Cc: Linux Kernel Mailing List, linux-mmc, wang.bo116

On Wed, 9 Jan 2019 at 13:11, wangbo <wdjjwb@163.com> wrote:
>
> In sdio_bus_remove the variable is unneeded,remove it now.
>
> Signed-off-by: wangbo <wang.bo116@zte.com.cn>

Thanks, applied for next!

Kind regards
Uffe


> ---
>  drivers/mmc/core/sdio_bus.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c
> index b6d8203..62b0f5e 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 = {
> --
> 2.7.4
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-14 11:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-09 12:10 [PATCH] mmc:sdio: Remove unneeded variable ret wangbo
2019-01-14 11:44 ` Ulf Hansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.