Skip to content

Commit

Permalink
mfd: Remove dead code from max8997-irq
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Juhl authored and Samuel Ortiz committed Jul 31, 2011
1 parent 54f323b commit 7785bf1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/mfd/max8997-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7785bf1

Please sign in to comment.