net: bnx2x: fix error value sign
authorVasiliy Kulikov <segoon@openwall.com>
Sun, 14 Nov 2010 10:08:34 +0000 (10:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Nov 2010 20:22:38 +0000 (12:22 -0800)
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>
drivers/net/bnx2x/bnx2x_main.c

index e9ad16f..9709b85 100644 (file)
@@ -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;