qed: Fix error return code in qed_resc_alloc()
authorWei Yongjun <weiyj.lk@gmail.com>
Tue, 2 Aug 2016 00:55:34 +0000 (00:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Aug 2016 04:37:35 +0000 (21:37 -0700)
commit1b4985b5e8c308e0c2e2046f1bb8dc6180d45b9f
tree2e3dad57a87a6b849e26e1b95be2be4a253a597b
parent43dcff349f091b6a2f5f491c35d89b173df41acf
qed: Fix error return code in qed_resc_alloc()

Fix to return error code -EINVAL instead of 0 when EQ elements is
too larger, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_dev.c