Skip to content

Commit

Permalink
extcon: max8997: Remove unreachable code
Browse files Browse the repository at this point in the history
'break' after 'return' is never executed and hence can be deleted.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
  • Loading branch information
Sachin Kamat authored and Chanwoo Choi committed Feb 13, 2013
1 parent cae93db commit 6a462e1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/extcon/extcon-max8997.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ static int max8997_muic_handle_charger_type_detach(
break;
default:
return -EINVAL;
break;
}

return 0;
Expand Down

0 comments on commit 6a462e1

Please sign in to comment.