From 7785bf11f312624101462d7dc840e27344899873 Mon Sep 17 00:00:00 2001 From: Jesper Juhl Date: Sat, 2 Jul 2011 22:38:11 +0200 Subject: 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 Acked-by: MyungJoo Ham Signed-off-by: Samuel Ortiz --- drivers/mfd/max8997-irq.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/mfd/max8997-irq.c') diff --git a/drivers/mfd/max8997-irq.c b/drivers/mfd/max8997-irq.c index 638bf7e4d3b3..09274cf7c33b 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 { -- cgit v1.2.3