staging: unisys: visorinput change -1 return value
authorErik Arfvidson <erik.arfvidson@unisys.com>
Sat, 14 May 2016 03:17:17 +0000 (23:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:58:16 +0000 (22:58 -0700)
This patch changes the vague -1 return value to -EINVAL

Signed-off-by: Erik Arfvidson <erik.arfvidson@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorinput/visorinput.c

index 12a3570780fca79d523fc5bd15ff0b8b4e4a64b1..d67cd76327c02f6d2288632ee8b2f6fd7c98d884 100644 (file)
@@ -506,7 +506,7 @@ calc_button(int x)
        case 3:
                return BTN_RIGHT;
        default:
-               return -1;
+               return -EINVAL;
        }
 }