]> git.karo-electronics.de Git - linux-beck.git/commit
HID: intel-ish-hid: initialize ts_format.reserved
authorJiri Kosina <jkosina@suse.cz>
Sat, 5 Nov 2016 15:15:03 +0000 (16:15 +0100)
committerJiri Kosina <jkosina@suse.cz>
Sat, 5 Nov 2016 21:59:36 +0000 (22:59 +0100)
commit15607a3ad4272ed6f781a5250479c87746746dda
tree9507bd58c1d33fa9a0811ead283cf5b77e237e2a
parent8a1e377e55f2dca5c689926313beeaa8ac2adb22
HID: intel-ish-hid: initialize ts_format.reserved

ts_format.reserved is not used anywhere yet, but the compiler generates a
warning when the struct's (uninitialized) field is being copied around

drivers/hid/intel-ish-hid/ipc/ipc.c: In function ‘write_ipc_from_queue’:
drivers/hid/intel-ish-hid/ipc/ipc.c:316: warning: ‘ts_format.reserved’ may be used uninitialized in this function

Avoid this by force-initializing the field to zero.

Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/intel-ish-hid/ipc/ipc.c