projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4781921
)
drivers:power:max77693: remove redundant logical constraint
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 18 Mar 2018 10:52:45 +0000
(11:52 +0100)
committer
Jaehoon Chung
<jh80.chung@samsung.com>
Wed, 2 May 2018 01:57:43 +0000
(10:57 +0900)
As ret is not set when calling max77693_get_vcell() there is no
need to check ret again.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/power/mfd/fg_max77693.c
patch
|
blob
|
history
diff --git
a/drivers/power/mfd/fg_max77693.c
b/drivers/power/mfd/fg_max77693.c
index df1550816ec69f7c776a166647915874f68546a5..a1407318effa8cf7dbbecf429158bb1e1093a663 100644
(file)
--- a/
drivers/power/mfd/fg_max77693.c
+++ b/
drivers/power/mfd/fg_max77693.c
@@
-60,8
+60,6
@@
static int power_update_battery(struct pmic *p, struct pmic *bat)
return ret;
max77693_get_vcell(&pb->bat->voltage_uV);
- if (ret)
- return ret;
return 0;
}