powerpc/pci: fix warning comparing pointer to 0
PATCH 1/1 powerpc/pci: fix warning comparing pointer to 0
Fix the following coccicheck warning:
./arch/powerpc/platforms/maple/pci.c:37:16-17: WARNING comparing pointer to 0.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- arch/powerpc/platforms/maple/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/maple/pci.c +1 -1
@@ -34,7 +34,7 @@static int __init fixup_one_level_bus_range (struct device_node *node,int higher) { -for (; node !=0 ;node = node->sibling) { +for (; node; node = node->sibling) {const int *bus_range;const unsigned int *class_code;int len;
Signature · 1 line
1.8.3.1
Michael Ellerman
AppliedQuoted 4 lines · Jiapeng Chong
Fix the following coccicheck warning:
./arch/powerpc/platforms/maple/pci.c:37:16-17: WARNING comparing pointer to 0.
Applied to powerpc/next.
[1/1] powerpc/pci: fix warning comparing pointer to 0
https://git.kernel.org/powerpc/c/7a0fdc19f2415683f403abee7bb87085d0c624ad
cheers