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>
Wed, 17 Feb 2021 17:34:55 +0000 (18:34 +0100)
commit5fb52551248f54ddc8f72bc252661468b603cfcc
tree7ad0a3f47e6ab2ab786cf7a27cee29f1ad8c7c07
parent0b25b55d34f554b43a679e7e1303beb973b63e27
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