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

Dan Carpenter
2022-10-24T06:36:04Z

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@gmail.com>

Make the function void instead.

regards,
dan carpenter