mfd: Remove dead code from max8997-irq
authorJesper Juhl <jj@chaosbits.net>
Sat, 2 Jul 2011 20:38:11 +0000 (22:38 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 31 Jul 2011 21:28:25 +0000 (23:28 +0200)
commit7785bf11f312624101462d7dc840e27344899873
tree3e72c4acb68066db492ac9a71f0743b4e39952ad
parent54f323b1325499574d92c85201971df096c25b79
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>
drivers/mfd/max8997-irq.c