summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max77686.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2014-08-18 15:41:59 +0100
committerLee Jones <lee.jones@linaro.org>2014-09-26 08:15:32 +0100
commitb87d9a0fed5828e6cca4c3b02eacbc9c12a9a8e8 (patch)
tree4a77047ebead86d902b34d5b1b1286d20b44a6ab /drivers/mfd/max77686.c
parent616e047992a4621a09ef45182076ff09b2495dec (diff)
downloadlinux-b87d9a0fed5828e6cca4c3b02eacbc9c12a9a8e8.tar.bz2
mfd: max77686: Remove check which is always true
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>
Diffstat (limited to 'drivers/mfd/max77686.c')
-rw-r--r--drivers/mfd/max77686.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c
index 86e552348db4..929795eae9fc 100644
--- 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,