]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: playstation: fix unused variable in ps_battery_get_property.
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Fri, 12 Feb 2021 06:41:00 +0000 (22:41 -0800)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 12 Feb 2021 07:57:06 +0000 (08:57 +0100)
commit3847d15b41ce43a0c2beb3251ca43a2119b865df
tree5f3aefe9fcd773030f6d727748acdc844f832fa1
parent1f902f8636e499c32f0b55e1ce150082829ef033
HID: playstation: fix unused variable in ps_battery_get_property.

The ret variable in ps_battery_get_property is set in an error path,
but never actually returned. Change the function to return ret.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-playstation.c