Re: [PATCH] cxl: Reduce scope for the variable “mm” in cxllib_get_PE_attributes()

2021-02-03 Thread Michael Ellerman
On Thu, 10 Dec 2020 15:35:38 +0100, Markus Elfring wrote: > A local variable was used only within an if branch. > Thus move the definition for the variable “mm” into the corresponding > code block. > > This issue was detected by using the Coccinelle software. Applied to powerpc/next. [1/1] c

Re: [PATCH] cxl: Reduce scope for the variable “mm” in cxllib_get_PE_attributes()

2020-12-10 Thread Markus Elfring
>> 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/

Re: [PATCH] cxl: Reduce scope for the variable “mm” in cxllib_get_PE_attributes()

2020-12-10 Thread Greg Kroah-Hartman
On Thu, Dec 10, 2020 at 03:35:38PM +0100, Markus Elfring wrote: > From: Markus Elfring > 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