mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-24 10:28:57 +00:00
i7core_edac: Print an error message if pci register fails
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
b990538a78
commit
3ef288a983
@ -1743,7 +1743,13 @@ static int __init i7core_init(void)
|
||||
|
||||
pci_rc = pci_register_driver(&i7core_driver);
|
||||
|
||||
return (pci_rc < 0) ? pci_rc : 0;
|
||||
if (pci_rc >= 0)
|
||||
return 0;
|
||||
|
||||
i7core_printk(KERN_ERR, "Failed to register device with error %d.\n",
|
||||
pci_rc);
|
||||
|
||||
return pci_rc;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user