]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Fix several minor compiler warnings
authorJason Gerecke <killertofu@gmail.com>
Fri, 16 Aug 2019 18:54:26 +0000 (11:54 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 20 Aug 2019 14:57:31 +0000 (16:57 +0200)
commitac7b9414cb09ce31e74173918a7bb9b04dde9a5f
treeb6a8af1d8fe0c576b287efea7e22c891232a7792
parent28e26ec44a632a5962897aa90d26977281d540c2
HID: wacom: Fix several minor compiler warnings

Addresses a few issues that were noticed when compiling with non-default
warnings enabled. The trimmed-down warnings in the order they are fixed
below are:

* declaration of 'size' shadows a parameter

* '%s' directive output may be truncated writing up to 5 bytes into a
  region of size between 1 and 64

* pointer targets in initialization of 'char *' from 'unsigned char *'
  differ in signedness

* left shift of negative value

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.c