[Skiboot] [PATCH 3/4] witherspoon: fix using integer as NULL sparse warning
Stewart Smith
stewart at flamingspork.com
Mon Sep 14 08:59:03 AEST 2020
platforms/astbmc/witherspoon.c:557:28: warning: Using plain integer as NULL pointer
Signed-off-by: Stewart Smith <stewart at flamingspork.com>
---
platforms/astbmc/witherspoon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/platforms/astbmc/witherspoon.c b/platforms/astbmc/witherspoon.c
index 39c3f161..fd9bcce4 100644
--- a/platforms/astbmc/witherspoon.c
+++ b/platforms/astbmc/witherspoon.c
@@ -554,7 +554,7 @@ static void witherspoon_finalise_dt(bool is_reboot)
* SCL/SDA don't return to the idle state fast enough. Disable
* the port to squash the errors.
*/
- for (c = next_chip(0); c; c = next_chip(c)) {
+ for (c = next_chip(NULL); c; c = next_chip(c)) {
bool detected = false;
int i;
--
2.26.2
More information about the Skiboot
mailing list