aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2009-12-12 04:09:05 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-13 22:47:42 -0500
commite0802793f6f65242760089d8d85a50098706dd26 (patch)
treedc3ae24eb278e7e1ffd7c94b2a0eebdca49f0e74 /drivers/net/mlx4
parentc7cd606f60e7679c7f9eee7010f02a6f000209c1 (diff)
mlx4_core: return a negative error value
The return value should be negative. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4')
-rw-r--r--drivers/net/mlx4/sense.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx4/sense.c b/drivers/net/mlx4/sense.c
index f36ae691cab3..015fbe785c13 100644
--- a/drivers/net/mlx4/sense.c
+++ b/drivers/net/mlx4/sense.c
@@ -53,7 +53,7 @@ static int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port,
53 53
54 if (out_param > 2) { 54 if (out_param > 2) {
55 mlx4_err(dev, "Sense returned illegal value: 0x%llx\n", out_param); 55 mlx4_err(dev, "Sense returned illegal value: 0x%llx\n", out_param);
56 return EINVAL; 56 return -EINVAL;
57 } 57 }
58 58
59 *type = out_param; 59 *type = out_param;