libpayload: style: compare null-pointers with NULL, not 0
[coreboot.git] / 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;
-       while (controller != 0) {
+       while (controller != NULL) {
                controller->shutdown(controller);
                controller = controller->next;
        }
@@ -92,7 +92,7 @@ usb_poll (void)
        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) {