summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/i2c/busses/i2c-i801.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index c5bdaf35cd09..7d14b6729772 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -1188,7 +1188,7 @@ static bool is_dell_system_with_lis3lv02d(void)
const char *vendor;
vendor = dmi_get_system_info(DMI_SYS_VENDOR);
- if (strcmp(vendor, "Dell Inc.") != 0)
+ if (!vendor || strcmp(vendor, "Dell Inc."))
return false;
/*