mfd: Remove dead code from max8997-irq
authorJesper Juhl <[email protected]>
Sat, 2 Jul 2011 20:38:11 +0000 (22:38 +0200)
committerSamuel Ortiz <[email protected]>
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 <[email protected]>
Acked-by: MyungJoo Ham <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
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 {