drivers/i2c/at24rf08c/lenovo_serials.c: Use NULL over '0'

Change-Id: I7d8922d1812814ea2ebd72aaf5b5e28dc592bfb3
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/7590
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Edward O'Callaghan 2014-11-28 03:31:42 +11:00
parent 07d89a0e0d
commit 1ab41db0e3
1 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ static void at24rf08c_read_string(u8 bank, u8 start, u8 len, char *result)
struct device *dev; struct device *dev;
dev = at24rf08c_find_bank(bank); dev = at24rf08c_find_bank(bank);
if (dev == 0) { if (dev == NULL) {
printk(BIOS_WARNING, "EEPROM not found\n"); printk(BIOS_WARNING, "EEPROM not found\n");
memcpy(result, ERROR_STRING, sizeof (ERROR_STRING)); memcpy(result, ERROR_STRING, sizeof (ERROR_STRING));
return; return;
@ -139,7 +139,7 @@ void smbios_mainboard_set_uuid(u8 *uuid)
memset (result, 0, sizeof (result)); memset (result, 0, sizeof (result));
dev = dev_find_slot_on_smbus(1, 0x56); dev = dev_find_slot_on_smbus(1, 0x56);
if (dev == 0) { if (dev == NULL) {
printk(BIOS_WARNING, "EEPROM not found\n"); printk(BIOS_WARNING, "EEPROM not found\n");
already_read = 1; already_read = 1;
memset (uuid, 0, 16); memset (uuid, 0, 16);
@ -182,7 +182,7 @@ const char *smbios_mainboard_version(void)
memset (result, 0, sizeof (result)); memset (result, 0, sizeof (result));
dev = at24rf08c_find_bank(2); dev = at24rf08c_find_bank(2);
if (dev == 0) { if (dev == NULL) {
memcpy(result, ERROR_STRING, sizeof (ERROR_STRING)); memcpy(result, ERROR_STRING, sizeof (ERROR_STRING));
return result; return result;
} }