OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
616e047
)
mfd: max77686: Remove check which is always true
author
Lee Jones
<lee.jones@linaro.org>
Mon, 18 Aug 2014 14:41:59 +0000
(15:41 +0100)
committer
Lee Jones
<lee.jones@linaro.org>
Fri, 26 Sep 2014 07:15:32 +0000
(08:15 +0100)
As 'reg' is unsigned, it can't be less than 0, so checking if it is
greater than or equal to 0 will always result in a true condition.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max77686.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/max77686.c
b/drivers/mfd/max77686.c
index
86e5523
..
929795e
100644
(file)
--- a/
drivers/mfd/max77686.c
+++ b/
drivers/mfd/max77686.c
@@
-52,7
+52,7
@@
static const struct mfd_cell max77802_devs[] = {
static bool max77802_pmic_is_accessible_reg(struct device *dev,
unsigned int reg)
{
- return
(reg >= MAX77802_REG_DEVICE_ID && reg < MAX77802_REG_PMIC_END)
;
+ return
reg < MAX77802_REG_PMIC_END
;
}
static bool max77802_rtc_is_accessible_reg(struct device *dev,