IB/mlx5: Fix error return code in init_one()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 29 Jul 2013 23:54:26 +0000 (07:54 +0800)
committerRoland Dreier <roland@purestorage.com>
Wed, 31 Jul 2013 21:12:07 +0000 (14:12 -0700)
commit281d1a9211986cfdccbefcd6128049a0a0d473b2
tree7e8f8920e48b403d6cf0e904e5ec07c4cca3f6a2
parent3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b
IB/mlx5: Fix error return code in init_one()

Fix to return a negative error code from the error handling case
instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/main.c