power: qcom_smbb: test the correct variable
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Sep 2015 18:41:37 +0000 (21:41 +0300)
committerSebastian Reichel <sre@kernel.org>
Thu, 24 Sep 2015 20:35:24 +0000 (22:35 +0200)
commit0bc58e93819d542475cd9390921db509a283fe72
tree8237bcc342c2d8363141597ac37fbb807b85137c
parent28153a31b8b6c44e4f1e24dafce2f1b22cec427b
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>
drivers/power/qcom_smbb.c