Explorar el Código

extcon: max8997: Remove unreachable code

'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>
Sachin Kamat hace 12 años
padre
commit
6a462e1d00
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      drivers/extcon/extcon-max8997.c

+ 0 - 1
drivers/extcon/extcon-max8997.c

@@ -289,7 +289,6 @@ static int max8997_muic_handle_charger_type_detach(
 		break;
 	default:
 		return -EINVAL;
-		break;
 	}
 
 	return 0;