net/mlx5_core: fix an error code
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 11 Jun 2015 08:50:01 +0000 (11:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2015 22:44:41 +0000 (15:44 -0700)
commit7ec0bb227aa6fb8c622bec91933e865b37dc58f2
treeaf1d96bb2179c5973efee4d46ff6136ffbc82901
parentf60a8b3d1968d3e2d5259e2c2d4e9f16e19a738b
net/mlx5_core: fix an error code

We return success if mlx5e_alloc_sq_db() fails but we should return an
error code.

Fixes: f62b8bb8f2d3 ('net/mlx5: Extend mlx5_core to support ConnectX-4 Ethernet functionality')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c