[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210420110348.GC1981@kadam>
Date: Tue, 20 Apr 2021 14:03:48 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Saurav Girepunje <saurav.girepunje@...il.com>
Cc: gregkh@...uxfoundation.org, fabioaiuto83@...il.com,
hello@...anbrattlof.com, hdegoede@...hat.com,
saurav.girepunje@...gle.com, john.oldman@...ehill.co.uk,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
saurav.girepunje@...mail.com
Subject: Re: [PATCH] staging: rtl8723bs: os_dep: remove multiple return
On Sun, Apr 18, 2021 at 11:02:33PM +0530, Saurav Girepunje wrote:
> on sdio_intf.c rtw_sdio_suspend call we have multiple
> return which can replace by goto exit. As in all the places
> return value is 0.
>
Why?
Do nothing gotos just make the code harder to read and introduce forgot
to set the error code bugs.
regards,
dan carpenter
Powered by blists - more mailing lists