mfd: tps65090: Remove redundant check
authorVenu Byravarasu <vbyravarasu@nvidia.com>
Mon, 17 Sep 2012 05:30:47 +0000 (11:00 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 19 Sep 2012 10:44:47 +0000 (12:44 +0200)
Remove redundant check in is_volatile_reg().

Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/tps65090.c

index 50fd87c..074ae32 100644 (file)
@@ -236,7 +236,7 @@ static int __devinit tps65090_irq_init(struct tps65090 *tps65090, int irq,
 
 static bool is_volatile_reg(struct device *dev, unsigned int reg)
 {
-       if ((reg == TPS65090_INT_STS) || (reg == TPS65090_INT_STS))
+       if (reg == TPS65090_INT_STS)
                return true;
        else
                return false;