]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mlx4_core: return a negative error value
authorroel kluin <roel.kluin@gmail.com>
Sat, 12 Dec 2009 09:09:05 +0000 (09:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Dec 2009 03:47:42 +0000 (19:47 -0800)
The return value should be negative.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/sense.c

index f36ae691cab3c343091fb7130591c8737ab4afee..015fbe785c13304aab333759a4629250b531b8d9 100644 (file)
@@ -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;