Messages in this thread | | | Date | Mon, 24 Oct 2022 09:35:23 +0300 | From | Dan Carpenter <> | Subject | Re: [PATCH 2/4] staging: r8188eu: remove unnecessary variable in rtw_recv |
| |
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
| |