Re: [PATCH] HID: logitech: fix a used uninitialized GCC warning

2018-09-13 Thread zhong jiang
On 2018/9/13 15:01, Benjamin Tissoires wrote: > On Thu, Sep 13, 2018 at 6:04 AM zhong jiang wrote: >> 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 >> un

Re: [PATCH] HID: logitech: fix a used uninitialized GCC warning

2018-09-13 Thread Benjamin Tissoires
On Thu, Sep 13, 2018 at 6:04 AM zhong jiang wrote: > > 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

[PATCH] HID: logitech: fix a used uninitialized GCC warning

2018-09-12 Thread zhong jiang
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 = multi