[PATCH] cxl: Reduce scope for the variable âmmâ in cxllib_get_PE_attributes()
Michael Ellerman
patch-notifications at ellerman.id.au
Wed Feb 3 22:40:38 AEDT 2021
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] cxl: Reduce scope for the variable âmmâ in cxllib_get_PE_attributes()
https://git.kernel.org/powerpc/c/245a389c6ded15a7d308dbe988aec8a96e8aa8cf
cheers
More information about the Linuxppc-dev
mailing list