Patrick Georgi (patrick@georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/551
-gerrit
commit 5d901c1f09cbf1c7b633c96bdcd6d654581bcfbf Author: Patrick Georgi patrick.georgi@secunet.com Date: Fri Nov 18 11:56:38 2011 +0100
libpayload: style: compare null-pointers with NULL, not 0
Change-Id: I5efbfb75e2894bc8d8e50c8737cfee9738d15eda Signed-off-by: Patrick Georgi patrick.georgi@secunet.com --- payloads/libpayload/drivers/usb/usb.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/payloads/libpayload/drivers/usb/usb.c b/payloads/libpayload/drivers/usb/usb.c index 995b4c2..1f21e6a 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) {