HID: logitech: fix a used uninitialized GCC warning
authorzhong jiang <zhongjiang@huawei.com>
Thu, 13 Sep 2018 07:41:10 +0000 (15:41 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 24 Sep 2018 09:30:52 +0000 (11:30 +0200)
commit5fe2ccbef9d7aecf5c4402c753444f1a12096cfd
tree7106dd603efbee982ab15ca1876ebb32041bf741
parent3fe1d6bbcd16f384d2c7dab2caf8e4b2df9ea7e6
HID: logitech: fix a used uninitialized GCC warning

Fix the following compile warning:

drivers/hid/hid-logitech-hidpp.c: In function 'hi_res_scroll_enable':
drivers/hid/hid-logitech-hidpp.c:2714:54: warning: 'multiplier' may be used uninitialized in this function [-Wmaybe-uninitialized]
  hidpp->vertical_wheel_counter.resolution_multiplier = multiplier;

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-hidpp.c