]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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)
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

index 638bf7e4d3b38b613a188d08e655d09389516626..09274cf7c33bd0bd7d21ca2ee4cd12f78330bcfb 100644 (file)
@@ -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 {