From: Corey Minyard Date: Thu, 26 Mar 2015 18:35:18 +0000 (-0500) Subject: ipmi_ssif: Fix the logic on user-supplied addresses X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d467f7a405cf0e7f06ed8d3175607ebb4ed06671;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ipmi_ssif: Fix the logic on user-supplied addresses Returning zero is success. Signed-off-by: Corey Minyard --- diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c index f40e3bd2c69c..1de1914f5f89 100644 --- a/drivers/char/ipmi/ipmi_ssif.c +++ b/drivers/char/ipmi/ipmi_ssif.c @@ -1832,7 +1832,7 @@ static int init_ipmi_ssif(void) rv = new_ssif_client(addr[i], adapter_name[i], dbg[i], slave_addrs[i], SI_HARDCODED); - if (!rv) + if (rv) pr_err(PFX "Couldn't add hardcoded device at addr 0x%x\n", addr[i]);