Commit 4a4456e5 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Bryan Huntsman
Browse files

power: pm8921-bms: fix warnings



'row1' and 'row2' might be used uninitialized in
interpolate_scalingfactor_pc.

There would be a memory leak in the probe function if battery
data is bad. Free the chip memory before returning.

Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent e49436af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment