Re: [PATCH 2/4] staging: r8188eu: remove unnecessary variable in rtw_recv

From: Dan Carpenter
Date: Mon Oct 24 2022 - 02:36:04 EST


On Mon, Oct 24, 2022 at 05:05:30AM +0900, Kang Minchul wrote:
> Return _SUCCESS directly instead of storing it in a variable.
> This can prevent cocci warning as follows:
>
> Unneeded variable: "ret". Return "_SUCCESS" on line 1516
>
> Signed-off-by: Kang Minchul <tegongkang@xxxxxxxxx>

Make the function void instead.

regards,
dan carpenter