From 1ab41db0e32985842caf50ea11043e8bb4ecf592 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Fri, 28 Nov 2014 03:31:42 +1100 Subject: [PATCH] drivers/i2c/at24rf08c/lenovo_serials.c: Use NULL over '0' Change-Id: I7d8922d1812814ea2ebd72aaf5b5e28dc592bfb3 Signed-off-by: Edward O'Callaghan Reviewed-on: http://review.coreboot.org/7590 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Paul Menzel --- 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 33c0438a5f..b9beeb73d1 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; }