aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Smith <stewart@flamingspork.com>2020-09-13 15:59:03 -0700
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2020-11-27 15:37:15 +0530
commitb825589e085e23add8d0c58cfde7c8ed1f0b2dfd (patch)
treee165cf78620b2ab2250974aafe6c37cbc3a1b91f
parentd29b2a53c7c77c41fbe813aca8866098a8f7af1d (diff)
downloadskiboot-b825589e085e23add8d0c58cfde7c8ed1f0b2dfd.zip
skiboot-b825589e085e23add8d0c58cfde7c8ed1f0b2dfd.tar.gz
skiboot-b825589e085e23add8d0c58cfde7c8ed1f0b2dfd.tar.bz2
witherspoon: fix using integer as NULL sparse warning
platforms/astbmc/witherspoon.c:557:28: warning: Using plain integer as NULL pointer Signed-off-by: Stewart Smith <stewart@flamingspork.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
-rw-r--r--platforms/astbmc/witherspoon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platforms/astbmc/witherspoon.c b/platforms/astbmc/witherspoon.c
index a69114c..67c24b5 100644
--- a/platforms/astbmc/witherspoon.c
+++ b/platforms/astbmc/witherspoon.c
@@ -555,7 +555,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;