HID: wacom: Remove comparison of u8 mode with zero and simplify.
authorChristos Gkekas <chris.gekas@gmail.com>
Sat, 8 Jul 2017 19:25:48 +0000 (20:25 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 20 Jul 2017 13:43:01 +0000 (15:43 +0200)
commitbc35f73aa62f51b80f769d3a6617f4a4ba11d81e
tree67f619dca225607fc27f84c79c962050ec899df1
parenta91ab911df51ac364e594d5950ed508d91091498
HID: wacom: Remove comparison of u8 mode with zero and simplify.

Variable mode in method wacom_show_remote_mode() is defined as u8, thus
statement (mode >= 0) is always true and should be removed, simplifying
the logic.

Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c