net: bnx2x: fix error value sign
authorVasiliy Kulikov <[email protected]>
Sun, 14 Nov 2010 10:08:34 +0000 (10:08 +0000)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Acked-by: Eilon Greenstein <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/bnx2x/bnx2x_main.c

index e9ad16f00b56755847eb887a898c999ef2c08c04..9709b8569666d56ff84fb263429eb6f27c244033 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;