commit | e0802793f6f65242760089d8d85a50098706dd26 | [log] [tgz] |
---|---|---|
author | roel kluin <roel.kluin@gmail.com> | Sat Dec 12 09:09:05 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sun Dec 13 19:47:42 2009 -0800 |
tree | dc3ae24eb278e7e1ffd7c94b2a0eebdca49f0e74 | |
parent | c7cd606f60e7679c7f9eee7010f02a6f000209c1 [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>
diff --git a/drivers/net/mlx4/sense.c b/drivers/net/mlx4/sense.c index f36ae69..015fbe78 100644 --- a/drivers/net/mlx4/sense.c +++ b/drivers/net/mlx4/sense.c
@@ -53,7 +53,7 @@ if (out_param > 2) { mlx4_err(dev, "Sense returned illegal value: 0x%llx\n", out_param); - return EINVAL; + return -EINVAL; } *type = out_param;