From: Vasiliy Kulikov Date: Sun, 14 Nov 2010 10:08:34 +0000 (+0000) Subject: net: bnx2x: fix error value sign X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=870634b0b641271acb2e22df06ddda0c794b89a3;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Acked-by: Eilon Greenstein Signed-off-by: David S. Miller --- diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c index e9ad16f00b5..9709b856966 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;