libinput-device: Remove unnecessary function call
authorChris Michael <cpmichael@osg.samsung.com>
Mon, 22 Feb 2016 13:47:24 +0000 (08:47 -0500)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 26 Feb 2016 13:30:16 +0000 (15:30 +0200)
commit7e7f79317486a8d7955442387517c171963f8c9b
tree6526da956262aebbb4753c323eea4821c90a11ab
parentc25f72d8e95afde8f6f59cbc33ef314fd42a3ac4
libinput-device: Remove unnecessary function call

When we handle keyboard key events, we already retrieve the key state
at the top of this function, so there is no real need to call the same
libinput function again as we can just reuse the 'key_state' variable
that we have above.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/libinput-device.c