summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorVasiliy Kulikov <segoon@openwall.com>2010-11-14 11:08:34 +0100
committerDavid S. Miller <davem@davemloft.net>2010-11-17 21:22:38 +0100
commit870634b0b641271acb2e22df06ddda0c794b89a3 (patch)
treeea1ac4c33c1ccd63755eb65ad30c5bb61d1a26d9 /drivers/net
parent8139cp: fix checksum broken (diff)
downloadlinux-870634b0b641271acb2e22df06ddda0c794b89a3.tar.xz
linux-870634b0b641271acb2e22df06ddda0c794b89a3.zip
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/bnx2x/bnx2x_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c
index e9ad16f00b56..9709b8569666 100644
--- a/drivers/net/bnx2x/bnx2x_main.c
+++ b/drivers/net/bnx2x/bnx2x_main.c
@@ -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;