浏览代码

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>
Lee Jones 11 年之前
父节点
当前提交
b87d9a0fed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mfd/max77686.c

+ 1 - 1
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,
 static bool max77802_pmic_is_accessible_reg(struct device *dev,
 					    unsigned int reg)
 					    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,
 static bool max77802_rtc_is_accessible_reg(struct device *dev,