diff options
-rw-r--r-- | drivers/char/ipmi/ipmi_ssif.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c index 6dd6476ea5d3..1d4fd846e457 100644 --- a/drivers/char/ipmi/ipmi_ssif.c +++ b/drivers/char/ipmi/ipmi_ssif.c | |||
@@ -1419,8 +1419,7 @@ static int find_slave_address(struct i2c_client *client, int slave_addr) | |||
1419 | list_for_each_entry(info, &ssif_infos, link) { | 1419 | list_for_each_entry(info, &ssif_infos, link) { |
1420 | if (info->binfo.addr != client->addr) | 1420 | if (info->binfo.addr != client->addr) |
1421 | continue; | 1421 | continue; |
1422 | if (info->adapter_name && client->adapter->name && | 1422 | if (info->adapter_name && strcmp_nospace(info->adapter_name, |
1423 | strcmp_nospace(info->adapter_name, | ||
1424 | client->adapter->name)) | 1423 | client->adapter->name)) |
1425 | continue; | 1424 | continue; |
1426 | if (info->slave_addr) { | 1425 | if (info->slave_addr) { |