Edward O'Callaghan (eocallaghan@alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7590
-gerrit
commit 16b383e836ac825a76a2e9348fe2dfbb9d44ca77 Author: Edward O'Callaghan eocallaghan@alterapraxis.com Date: Fri Nov 28 03:31:42 2014 +1100
drivers/i2c/at24rf08c/lenovo_serials.c: Use NULL over '0'
Change-Id: I7d8922d1812814ea2ebd72aaf5b5e28dc592bfb3 Signed-off-by: Edward O'Callaghan eocallaghan@alterapraxis.com --- src/drivers/i2c/at24rf08c/lenovo_serials.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/drivers/i2c/at24rf08c/lenovo_serials.c b/src/drivers/i2c/at24rf08c/lenovo_serials.c index 33c0438..b9beeb7 100644 --- a/src/drivers/i2c/at24rf08c/lenovo_serials.c +++ b/src/drivers/i2c/at24rf08c/lenovo_serials.c @@ -75,7 +75,7 @@ static void at24rf08c_read_string(u8 bank, u8 start, u8 len, char *result) struct device *dev;
dev = at24rf08c_find_bank(bank); - if (dev == 0) { + if (dev == NULL) { printk(BIOS_WARNING, "EEPROM not found\n"); memcpy(result, ERROR_STRING, sizeof (ERROR_STRING)); return; @@ -139,7 +139,7 @@ void smbios_mainboard_set_uuid(u8 *uuid) memset (result, 0, sizeof (result));
dev = dev_find_slot_on_smbus(1, 0x56); - if (dev == 0) { + if (dev == NULL) { printk(BIOS_WARNING, "EEPROM not found\n"); already_read = 1; memset (uuid, 0, 16); @@ -182,7 +182,7 @@ const char *smbios_mainboard_version(void) memset (result, 0, sizeof (result));
dev = at24rf08c_find_bank(2); - if (dev == 0) { + if (dev == NULL) { memcpy(result, ERROR_STRING, sizeof (ERROR_STRING)); return result; }