Skip to contentSkip to conversation

mfd: remove dead code from drivers/mfd/max8997-irq.c:get_i2c()

PATCH MyungJoo Ham 1 participant 1 message Jul 4, 2011

lore
Share & tools
lore

MyungJoo Ham

author Acked-by
#0 lore raw

Sender : Jesper Juhl<[email protected]> Date : 2011-07-03 05:38 (GMT+09:00)

Quoted 6 lines

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

Looks good.

Quoted 16 lines

---
drivers/mfd/max8997-irq.c | 2 --

1 files changed, 0 insertions(+), 2 deletions(-)
drivers/mfd/max8997-irq.c +0 -0
index 638bf7e..09274cf 100644
@@ -58,8 +58,6 @@ static struct i2c_client *get_i2c(struct max8997_dev *max8997,

default:
return ERR_PTR(-EINVAL);
}
-
- return ERR_PTR(-EINVAL);
}

Quoted 9 lines

struct max8997_irq_data {

Signature · 7 lines
1.7.6


-- 
Jesper Juhl        http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.

MyungJoo Ham (함명주)
Mobile Software Platform Lab,
Digital Media and Communications (DMC) Business
Samsung Electronics
cell: +82-10-6714-2858 / office: +82-31-279-8033�淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m��� �띠�◀?뻀�