summaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@secunet.com>2011-11-18 11:56:38 +0100
committerPeter Stuge <peter@stuge.se>2012-01-18 14:00:05 +0100
commitdb89ec975c39e6523336563923ccf8b7397cc313 (patch)
treef71513e84f4275ff0f14808db2b2211ad8e33fe8 /payloads/libpayload
parent950f20a404df4c270a3f587224f7bc2554c95d6b (diff)
downloadcoreboot-db89ec975c39e6523336563923ccf8b7397cc313.tar.xz
libpayload: style: compare null-pointers with NULL, not 0
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>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r--payloads/libpayload/drivers/usb/usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/drivers/usb/usb.c b/payloads/libpayload/drivers/usb/usb.c
index 995b4c2918..1f21e6a994 100644
--- a/payloads/libpayload/drivers/usb/usb.c
+++ b/payloads/libpayload/drivers/usb/usb.c
@@ -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) {