Skip to content

Commit 2ddf50a

Browse files
ISCAS-Vulabchanwoochoi
authored andcommitted
extcon: sm5502: Remove unneeded semicolon
Remove unneeded semicolon reported by coccinelle. Signed-off-by: Xu Wang <[email protected]> [cw00.choi: Edit patch title and description] Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 4b28b25 commit 2ddf50a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/extcon/extcon-sm5502.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ static int sm5502_muic_set_path(struct sm5502_muic_info *info,
249249
dev_err(info->dev, "Unknown DM_CON/DP_CON switch type (%d)\n",
250250
con_sw);
251251
return -EINVAL;
252-
};
252+
}
253253

254254
switch (vbus_sw) {
255255
case VBUSIN_SWITCH_OPEN:
@@ -268,7 +268,7 @@ static int sm5502_muic_set_path(struct sm5502_muic_info *info,
268268
default:
269269
dev_err(info->dev, "Unknown VBUS switch type (%d)\n", vbus_sw);
270270
return -EINVAL;
271-
};
271+
}
272272

273273
return 0;
274274
}
@@ -357,13 +357,13 @@ static unsigned int sm5502_muic_get_cable_type(struct sm5502_muic_info *info)
357357
"cannot identify the cable type: adc(0x%x)\n",
358358
adc);
359359
return -EINVAL;
360-
};
360+
}
361361
break;
362362
default:
363363
dev_err(info->dev,
364364
"failed to identify the cable type: adc(0x%x)\n", adc);
365365
return -EINVAL;
366-
};
366+
}
367367

368368
return cable_type;
369369
}
@@ -405,7 +405,7 @@ static int sm5502_muic_cable_handler(struct sm5502_muic_info *info,
405405
dev_dbg(info->dev,
406406
"cannot handle this cable_type (0x%x)\n", cable_type);
407407
return 0;
408-
};
408+
}
409409

410410
/* Change internal hardware path(DM_CON/DP_CON, VBUSIN) */
411411
ret = sm5502_muic_set_path(info, con_sw, vbus_sw, attached);

0 commit comments

Comments
 (0)