* Re: [PATCH] cxl: Reduce scope for the variable “mm” in cxllib_ [not found] <5cee2b25-71e0-15aa-fba6-12211b8308aa@web.de> @ 2020-12-10 14:47 ` Greg Kroah-Hartman [not found] ` <507d607a-0551-ec11-e1dc-5b9c96a361cb@web.de> 0 siblings, 1 reply; 2+ messages in thread From: Greg Kroah-Hartman @ 2020-12-10 14:47 UTC (permalink / raw) To: Markus Elfring Cc: Andrew Donnellan, Arnd Bergmann, kernel-janitors, LKML, Frederic Barrat, linuxppc-dev On Thu, Dec 10, 2020 at 03:35:38PM +0100, Markus Elfring wrote: > From: Markus Elfring <elfring@users.sourceforge.net> > Date: Thu, 10 Dec 2020 14:14:07 +0100 > > 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 :( dropped. greg k-h ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <507d607a-0551-ec11-e1dc-5b9c96a361cb@web.de>]
* Re: [PATCH] cxl: Reduce scope for the variable =?UTF-8?B?4oCcbW3igJ0gaW4gY3hsbG [not found] ` <507d607a-0551-ec11-e1dc-5b9c96a361cb@web.de> @ 2020-12-10 18:01 ` Christophe JAILLET 0 siblings, 0 replies; 2+ messages in thread From: Christophe JAILLET @ 2020-12-10 18:01 UTC (permalink / raw) To: Markus Elfring, Greg Kroah-Hartman; +Cc: kernel-janitors, LKML 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 ? ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-10 18:01 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <5cee2b25-71e0-15aa-fba6-12211b8308aa@web.de> 2020-12-10 14:47 ` [PATCH] cxl: Reduce scope for the variable “mm” in cxllib_ Greg Kroah-Hartman [not found] ` <507d607a-0551-ec11-e1dc-5b9c96a361cb@web.de> 2020-12-10 18:01 ` [PATCH] cxl: Reduce scope for the variable =?UTF-8?B?4oCcbW3igJ0gaW4gY3hsbG Christophe JAILLET
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).