summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
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;
}