lkml.org 
[lkml]   [2020]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] cxl: Reduce scope for the variable “mm” in cxllib get PE attributes()
From
Date
Le 10/12/2020 à 17:04, Markus Elfring a écrit :
>>> A local variable was used only within an if branch.
>>> Thus move the definition for the variable “mm” into the corresponding
>>> code block.
>>
>> You did nothing here except add a checkpatch warning :(
>
> elfring@Sonne:~/Projekte/Linux/next-patched> scripts/checkpatch.pl /home/elfring/Projekte/Bau/Linux/scripts/Coccinelle/tuning1/next/20201204/Flicken/0001-cxl-Reduce-scope-for-the-variable-mm-in-cxllib_get_P.patch
> total: 0 errors, 0 warnings, 16 lines checked
>
> Regards,
> Markus
>

Maybe:
script/checkpatch.pl -f drivers/misc/cxl/cxllib.c

?

\
 
 \ /
  Last update: 2020-12-10 19:06    [W:0.030 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site