[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YHG2A4rJdl1uiZjV@kroah.com>
Date: Sat, 10 Apr 2021 16:28:19 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Bryan Brattlof <hello@...anbrattlof.com>
Cc: Hans de Goede <hdegoede@...hat.com>,
Larry Finger <Larry.Finger@...inger.net>,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH v2] staging: rtl8723bs: remove unnecessary goto jumps
On Sat, Apr 10, 2021 at 02:20:19PM +0000, Bryan Brattlof wrote:
> The next instruction for both 'goto exit' jump statements is to
> execute the exit jump instructions regardless. We can safely
> remove all jump statements from __init rtw_drv_entry()
>
> Signed-off-by: Bryan Brattlof <hello@...anbrattlof.com>
> ---
> Changes from:
> v1: removed unnecessary edit of DBG_871X_LEVEL
>
> drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
> index 9fd926e1698f..39b6d4b6dec4 100644
> --- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
> +++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
> @@ -517,12 +517,8 @@ static int __init rtw_drv_entry(void)
> if (ret != 0) {
> sdio_drvpriv.drv_registered = false;
> rtw_ndev_notifier_unregister();
> - goto exit;
> }
>
> - goto exit;
> -
> -exit:
> DBG_871X_LEVEL(_drv_always_, "module init ret =%d\n", ret);
> return ret;
> }
> @@ -540,6 +536,5 @@ static void __exit rtw_drv_halt(void)
> DBG_871X_LEVEL(_drv_always_, "module exit success\n");
> }
>
> -
> module_init(rtw_drv_entry);
> module_exit(rtw_drv_halt);
Any reason you removed this extra line?
thanks,
greg k-h
Powered by blists - more mailing lists