summaryrefslogtreecommitdiffstats
path: root/drivers/power/pm2301_charger.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-09-24 21:41:37 +0300
committerSebastian Reichel <sre@kernel.org>2015-09-24 22:35:24 +0200
commit0bc58e93819d542475cd9390921db509a283fe72 (patch)
tree8237bcc342c2d8363141597ac37fbb807b85137c /drivers/power/pm2301_charger.c
parent28153a31b8b6c44e4f1e24dafce2f1b22cec427b (diff)
downloadlinux-0bc58e93819d542475cd9390921db509a283fe72.tar.gz
linux-0bc58e93819d542475cd9390921db509a283fe72.tar.bz2
linux-0bc58e93819d542475cd9390921db509a283fe72.zip
power: qcom_smbb: test the correct variable
"state" is a bool so it's never less than zero. The intent was to test "ret" instead. Fixes: 56d7df8716b2 ('power: Add Qualcomm SMBB driver') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/pm2301_charger.c')
0 files changed, 0 insertions, 0 deletions