net: bnx2x: fix error value sign
bnx2x_init_one() should return negative value on error. By mistake it returns ENODEV instead of -ENODEV. Signed-off-by: Vasiliy Kulikov <segoon@openwall.com> Acked-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
24b7ea9f6c
Коммит
870634b0b6
|
@ -9064,7 +9064,7 @@ static int __devinit bnx2x_init_one(struct pci_dev *pdev,
|
|||
default:
|
||||
pr_err("Unknown board_type (%ld), aborting\n",
|
||||
ent->driver_data);
|
||||
return ENODEV;
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
cid_count += CNIC_CONTEXT_USE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче