libpayload: style: compare null-pointers with NULL, not 0
authorPatrick Georgi <patrick.georgi@secunet.com>
Fri, 18 Nov 2011 10:56:38 +0000 (11:56 +0100)
committerPeter Stuge <peter@stuge.se>
Wed, 18 Jan 2012 13:00:05 +0000 (14:00 +0100)
Change-Id: I5efbfb75e2894bc8d8e50c8737cfee9738d15eda
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Reviewed-on: http://review.coreboot.org/551
Tested-by: build bot (Jenkins)
Reviewed-by: Peter Stuge <peter@stuge.se>
payloads/libpayload/drivers/usb/usb.c

index 995b4c29184ee1085cd4d29eff1aa1293057960a..1f21e6a9940d7716e7eadaf2adca6d13119714f4 100644 (file)
@@ -76,7 +76,7 @@ usb_exit (void)
        if (usb_hcs == 0)
                return 0;
        hci_t *controller = usb_hcs;
        if (usb_hcs == 0)
                return 0;
        hci_t *controller = usb_hcs;
-       while (controller != 0) {
+       while (controller != NULL) {
                controller->shutdown(controller);
                controller = controller->next;
        }
                controller->shutdown(controller);
                controller = controller->next;
        }
@@ -92,7 +92,7 @@ usb_poll (void)
        if (usb_hcs == 0)
                return;
        hci_t *controller = usb_hcs;
        if (usb_hcs == 0)
                return;
        hci_t *controller = usb_hcs;
-       while (controller != 0) {
+       while (controller != NULL) {
                int i;
                for (i = 0; i < 128; i++) {
                        if (controller->devices[i] != 0) {
                int i;
                for (i = 0; i < 128; i++) {
                        if (controller->devices[i] != 0) {