diff options
author | Jesper Juhl <jj@chaosbits.net> | 2011-07-02 20:38:11 (GMT) |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-07-31 21:28:25 (GMT) |
commit | 7785bf11f312624101462d7dc840e27344899873 (patch) | |
tree | 3e72c4acb68066db492ac9a71f0743b4e39952ad | |
parent | 54f323b1325499574d92c85201971df096c25b79 (diff) | |
download | linux-7785bf11f312624101462d7dc840e27344899873.tar.xz |
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>
-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 638bf7e..09274cf 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 { |