Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

extcon: sm5502: Remove unneeded semicolon

Remove unneeded semicolon reported by coccinelle.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
[cw00.choi: Edit patch title and description]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Xu Wang and committed by
Chanwoo Choi
2ddf50a7 4b28b25c

+5 -5
+5 -5
drivers/extcon/extcon-sm5502.c
··· 249 249 dev_err(info->dev, "Unknown DM_CON/DP_CON switch type (%d)\n", 250 250 con_sw); 251 251 return -EINVAL; 252 - }; 252 + } 253 253 254 254 switch (vbus_sw) { 255 255 case VBUSIN_SWITCH_OPEN: ··· 268 268 default: 269 269 dev_err(info->dev, "Unknown VBUS switch type (%d)\n", vbus_sw); 270 270 return -EINVAL; 271 - }; 271 + } 272 272 273 273 return 0; 274 274 } ··· 357 357 "cannot identify the cable type: adc(0x%x)\n", 358 358 adc); 359 359 return -EINVAL; 360 - }; 360 + } 361 361 break; 362 362 default: 363 363 dev_err(info->dev, 364 364 "failed to identify the cable type: adc(0x%x)\n", adc); 365 365 return -EINVAL; 366 - }; 366 + } 367 367 368 368 return cable_type; 369 369 } ··· 405 405 dev_dbg(info->dev, 406 406 "cannot handle this cable_type (0x%x)\n", cable_type); 407 407 return 0; 408 - }; 408 + } 409 409 410 410 /* Change internal hardware path(DM_CON/DP_CON, VBUSIN) */ 411 411 ret = sm5502_muic_set_path(info, con_sw, vbus_sw, attached);