qlogic: qed: fix error codes in qed_resc_alloc()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 Nov 2015 08:41:28 +0000 (11:41 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Nov 2015 18:39:31 +0000 (13:39 -0500)
commit9b15acbfe937f9c48a81d6aa306f9fa8b53abc13
treede721dbfb787ea5c73c14165fc27985d470b4a73
parente79a8bcb780314a555897a933d16553b80dbca1f
qlogic: qed: fix error codes in qed_resc_alloc()

We accidentally return success instead of -ENOMEM here.

Fixes: fe56b9e6a8d9 ('qed: Add module with basic common support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Yuval Mintz <Yuval.Mintz@qlogic.com
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_dev.c