summaryrefslogtreecommitdiff
path: root/drivers/power/reset
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2015-06-02 13:36:51 +0300
committerSebastian Reichel <sre@kernel.org>2015-06-02 21:58:19 +0300
commit23fa43a28d00bca79b28e145a34c0c7dcafd72bc (patch)
treeb11121f6ada4a7b034f9071bedef9a7f2fc419a8 /drivers/power/reset
parente86d69dd786e94046b8f5be7df1b9a8226a40b2a (diff)
downloadlinux-23fa43a28d00bca79b28e145a34c0c7dcafd72bc.tar.xz
power_supply: bq25890: make chip_id int
Smatch static checker correctly detected an impossible condition because chip_id was declared as u8, instead of int: drivers/power/bq25890_charger.c:843 bq25890_probe() warn: impossible condition '(bq->chip_id < 0) => (0-255 < 0)' Also, while at it, fix the return value too. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/reset')
0 files changed, 0 insertions, 0 deletions