staging: unisys: visorinput: handle_locking_key() simplifications
authorTim Sell <Timothy.Sell@unisys.com>
Fri, 6 May 2016 17:11:21 +0000 (13:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2016 12:15:18 +0000 (14:15 +0200)
commit73ba8afe33e22b4bae26098add458bed3e666bc2
tree6130b28ee882b592881b12b7b53c46e3f95a2a1c
parent0fab0f4fcbc08763158529b5ff124c596aef6bf9
staging: unisys: visorinput: handle_locking_key() simplifications

By directly returning for the error-case, a test was eliminated.  Also,
the old_state variable was removed as it was not necessary, and some
redundant parens were removed.

Signed-off-by: Tim Sell <Timothy.Sell@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