]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ipmi_ssif: Fix the logic on user-supplied addresses
authorCorey Minyard <cminyard@mvista.com>
Thu, 26 Mar 2015 18:35:18 +0000 (13:35 -0500)
committerCorey Minyard <cminyard@mvista.com>
Tue, 5 May 2015 19:24:45 +0000 (14:24 -0500)
Returning zero is success.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_ssif.c

index f40e3bd2c69c265400f1241900be8dddd26b51e8..1de1914f5f89634f11f1412e9f90ba1962481460 100644 (file)
@@ -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]);