diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2015-06-02 13:36:51 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-06-02 21:58:19 +0300 |
commit | 23fa43a28d00bca79b28e145a34c0c7dcafd72bc (patch) | |
tree | b11121f6ada4a7b034f9071bedef9a7f2fc419a8 /drivers/power/reset | |
parent | e86d69dd786e94046b8f5be7df1b9a8226a40b2a (diff) | |
download | linux-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