lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFq=AY=9hDDAPMjLpNPhN06+ZFpX5DvpFshW7+de1_b=NA@mail.gmail.com>
Date:   Mon, 14 Jan 2019 12:44:50 +0100
From:   Ulf Hansson <ulf.hansson@...aro.org>
To:     wangbo <wdjjwb@....com>
Cc:     Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        "linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>,
        wang.bo116@....com.cn
Subject: Re: [PATCH] mmc:sdio: Remove unneeded variable ret

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ