Skip to contentSkip to conversation

mfd: tps65090: remove redundant check

PATCH Applied Venu Byravarasu 2 participants 2 messages Sep 17, 2012 – Sep 19, 2012 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: tps65090: remove redundant check

Remove redundant check in is_volatile_reg().

---
 drivers/mfd/tps65090.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mfd/tps65090.c +1 -1
index 50fd87c..074ae32 100644
@@ -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;
Signature · 1 line
1.7.1.1
Applied
#1 lore raw

Hi Venu,

Quoted 6 lines · Venu Byravarasu

Remove redundant check in is_volatile_reg().

---
 drivers/mfd/tps65090.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/