summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max8997-irq.c
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2011-07-02 22:38:11 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-07-31 23:28:25 +0200
commit7785bf11f312624101462d7dc840e27344899873 (patch)
tree3e72c4acb68066db492ac9a71f0743b4e39952ad /drivers/mfd/max8997-irq.c
parentmfd: Move TPS55910 Kconfig option (diff)
downloadlinux-7785bf11f312624101462d7dc840e27344899873.tar.xz
linux-7785bf11f312624101462d7dc840e27344899873.zip
mfd: Remove dead code from max8997-irq
We either hit one of the case's or the default in the switch statement in get_i2c(), so the 'return ERR_PTR(-EINVAL);' at the end of the function is just dead code - remove it. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/max8997-irq.c')
-rw-r--r--drivers/mfd/max8997-irq.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mfd/max8997-irq.c b/drivers/mfd/max8997-irq.c
index 638bf7e4d3b3..09274cf7c33b 100644
--- a/drivers/mfd/max8997-irq.c
+++ b/drivers/mfd/max8997-irq.c
@@ -58,8 +58,6 @@ static struct i2c_client *get_i2c(struct max8997_dev *max8997,
default:
return ERR_PTR(-EINVAL);
}
-
- return ERR_PTR(-EINVAL);
}
struct max8997_irq_data {