From: roel kluin Date: Sat, 12 Dec 2009 09:09:05 +0000 (+0000) Subject: mlx4_core: return a negative error value X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e0802793f6f65242760089d8d85a50098706dd26;p=openwrt%2Fstaging%2Fblogic.git mlx4_core: return a negative error value The return value should be negative. Signed-off-by: Roel Kluin Signed-off-by: David S. Miller --- 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, if (out_param > 2) { mlx4_err(dev, "Sense returned illegal value: 0x%llx\n", out_param); - return EINVAL; + return -EINVAL; } *type = out_param;