Skip to content

Commit

Permalink
mlx4_core: return a negative error value
Browse files Browse the repository at this point in the history
The return value should be negative.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
roel kluin authored and David S. Miller committed Dec 14, 2009
1 parent c7cd606 commit e080279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/mlx4/sense.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port,

if (out_param > 2) {
mlx4_err(dev, "Sense returned illegal value: 0x%llx\n", out_param);
return EINVAL;
return -EINVAL;
}

*type = out_param;
Expand Down

0 comments on commit e080279

Please sign in to comment.