]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
commit870634b0b641271acb2e22df06ddda0c794b89a3
treeea1ac4c33c1ccd63755eb65ad30c5bb61d1a26d9
parent24b7ea9f6c9787fad885442ed0cc010f1aa69cca
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>
drivers/net/bnx2x/bnx2x_main.c