Re: [PATCH] staging: rtl8723bs: os_dep: remove multiple return

From: Dan Carpenter
Date: Tue Apr 20 2021 - 07:04:30 EST


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