From: Jesper Juhl Date: Sat, 2 Jul 2011 20:38:11 +0000 (+0200) Subject: mfd: Remove dead code from max8997-irq X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7785bf11f312624101462d7dc840e27344899873;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- 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 {