aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorTom Rix <[email protected]>2021-05-07 12:18:19 -0700
committerJiri Kosina <[email protected]>2021-05-27 15:40:34 +0200
commit81c8bf9170477d453b24a6bc3300d201d641e645 (patch)
treee660ef31d1c8ca2210d3b79ca53c5cff31feb25b /scripts/gdb/linux/timerlist.py
parent31a4cf1d223dc6144d2e7c679cc3a98f84a1607b (diff)
HID: logitech-hidpp: initialize level variable
Static analysis reports this representative problem hid-logitech-hidpp.c:1356:23: warning: Assigned value is garbage or undefined hidpp->battery.level = level; ^ ~~~~~ In some cases, 'level' is never set in hidpp20_battery_map_status_voltage() Since level is not available on all hw, initialize level to unknown. Fixes: be281368f297 ("hid-logitech-hidpp: read battery voltage from newer devices") Signed-off-by: Tom Rix <[email protected]> Reviewed-by: Filipe LaĆ­ns <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions