mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] ipmi: fix return codes in failure case
These returns should be negative, like the others in this function. Signed-off-by: Dave Jones <[email protected]> Acked-by: Corey Minyard <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c4ec7b0de4
commit
1cd441f998
1 changed files with 2 additions and 2 deletions
|
|
@ -1789,7 +1789,7 @@ static int __devinit ipmi_pci_probe(struct pci_dev *pdev,
|
|||
|
||||
info = kzalloc(sizeof(*info), GFP_KERNEL);
|
||||
if (!info)
|
||||
return ENOMEM;
|
||||
return -ENOMEM;
|
||||
|
||||
info->addr_source = "PCI";
|
||||
|
||||
|
|
@ -1810,7 +1810,7 @@ static int __devinit ipmi_pci_probe(struct pci_dev *pdev,
|
|||
kfree(info);
|
||||
printk(KERN_INFO "ipmi_si: %s: Unknown IPMI type: %d\n",
|
||||
pci_name(pdev), class_type);
|
||||
return ENOMEM;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
rv = pci_enable_device(pdev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue