diff options
author | Jesper Juhl <jj@chaosbits.net> | 2011-07-02 16:38:11 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-07-31 17:28:25 -0400 |
commit | 7785bf11f312624101462d7dc840e27344899873 (patch) | |
tree | 3e72c4acb68066db492ac9a71f0743b4e39952ad /drivers/mfd | |
parent | 54f323b1325499574d92c85201971df096c25b79 (diff) |
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')
-rw-r--r-- | drivers/mfd/max8997-irq.c | 2 |
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, | |||
58 | default: | 58 | default: |
59 | return ERR_PTR(-EINVAL); | 59 | return ERR_PTR(-EINVAL); |
60 | } | 60 | } |
61 | |||
62 | return ERR_PTR(-EINVAL); | ||
63 | } | 61 | } |
64 | 62 | ||
65 | struct max8997_irq_data { | 63 | struct max8997_irq_data { |