[coreboot] New patch to review for coreboot: 5d901c1 libpayload: style: compare null-pointers with NULL, not 0
Patrick Georgi (patrick@georgi-clan.de)
gerrit at coreboot.org
Wed Jan 18 13:33:44 CET 2012
Patrick Georgi (patrick at 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 at 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 at 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) {
More information about the coreboot
mailing list