提交 e0802793 编写于 作者: R roel kluin 提交者: David S. Miller

mlx4_core: return a negative error value

The return value should be negative.
Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c7cd606f
...@@ -53,7 +53,7 @@ static int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port, ...@@ -53,7 +53,7 @@ static int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port,
if (out_param > 2) { if (out_param > 2) {
mlx4_err(dev, "Sense returned illegal value: 0x%llx\n", out_param); mlx4_err(dev, "Sense returned illegal value: 0x%llx\n", out_param);
return EINVAL; return -EINVAL;
} }
*type = out_param; *type = out_param;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册