diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-09-24 20:41:37 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-09-24 22:35:24 +0200 |
commit | 0bc58e93819d542475cd9390921db509a283fe72 (patch) | |
tree | 8237bcc342c2d8363141597ac37fbb807b85137c /Documentation/devicetree/bindings/power_supply | |
parent | bq2415x_charger: Fix null pointer dereference (diff) | |
download | linux-0bc58e93819d542475cd9390921db509a283fe72.tar.xz 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 'Documentation/devicetree/bindings/power_supply')
0 files changed, 0 insertions, 0 deletions