Skip to content

Commit

Permalink
net: bnx2x: fix error value sign
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
segoon authored and davem330 committed Nov 17, 2010
1 parent 24b7ea9 commit 870634b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bnx2x/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 870634b

Please sign in to comment.