From: Markus Elfring <hidden> Date: 2020-12-10 15:47:03
From: Markus Elfring <redacted>
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.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <redacted>
---
drivers/misc/cxl/cxllib.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
On Thu, Dec 10, 2020 at 03:35:38PM +0100, Markus Elfring wrote:
From: Markus Elfring <redacted>
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
From: Michael Ellerman <hidden> Date: 2021-02-03 12:40:32
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.