UPSTREAM: 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 this function to return ret. Bug: 167947264 CRs-fixed: 2971837 Change-Id: Ieeaff4d249a6ee6d02eb4746f9fe502c91c6f40a 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> Signed-off-by:
Farid Chahla <farid.chahla@sony.com> Signed-off-by:
Siarhei Vishniakou <svv@google.com> Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git Git-commit: 5fb52551248f54ddc8f72bc252661468b603cfcc Signed-off-by:
Kishor Krishna Bhat <kishkris@codeaurora.org>
Loading
Please register or sign in to comment