lkml.org 
[lkml]   [2022]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2022-10-24 09:46    [W:0.037 / U:1.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site