aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorHarshit Mogalapalli <[email protected]>2023-09-23 04:48:06 -0700
committerSebastian Reichel <[email protected]>2023-09-24 22:51:55 +0200
commit43ee22422db545800b8bf2c24ef53d040372fc7a (patch)
tree582fe7aa087ce103bf13ac0e16640c3a9bbd64c0 /scripts/generate_rust_analyzer.py
parentde1ca06bc0364a58ba0889d97a7a094d87dd5477 (diff)
power: supply: mm8013: Fix error code in mm8013_probe()
The value of ret is zero when passed to dev_error_probe(), we are passing zero to dev_err_probe() is a success which is incorrect. Fix this by getting the error code using PTR_ERR(). Fixes: c75f4bf6800b ("power: supply: Introduce MM8013 fuel gauge driver") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Harshit Mogalapalli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions