summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-11-28 03:31:42 +1100
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-11-28 04:53:15 +0100
commit1ab41db0e32985842caf50ea11043e8bb4ecf592 (patch)
tree921c703ae795c40d4d5d05be96d474e01189376e /src/drivers
parent07d89a0e0d7da848700e364880764c9b495c3b93 (diff)
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>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/i2c/at24rf08c/lenovo_serials.c6
1 files 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;
}