Skip to content

Commit ec0d473

Browse files
lylezhu2012kartben
authored andcommitted
Bluetooth: HFP_AG: Remove unnecessary code line __fallthrough
Remove all unnecessary code lines `__fallthrough` from switch-case. Signed-off-by: Lyle Zhu <[email protected]>
1 parent ded0b17 commit ec0d473

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

subsys/bluetooth/host/classic/hfp_ag.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ static enum at_cme bt_hfp_ag_get_cme_err(int err)
171171
cme_err = CME_ERROR_MEMORY_FAILURE;
172172
break;
173173
case -ENOMEM:
174-
__fallthrough;
175174
case -ENOBUFS:
176175
cme_err = CME_ERROR_MEMORY_FULL;
177176
break;
@@ -3405,11 +3404,8 @@ static void bt_ag_deferred_work_cb(struct bt_hfp_ag *ag, void *user_data)
34053404
case BT_HFP_CALL_HOLD:
34063405
break;
34073406
case BT_HFP_CALL_OUTGOING:
3408-
__fallthrough;
34093407
case BT_HFP_CALL_INCOMING:
3410-
__fallthrough;
34113408
case BT_HFP_CALL_ALERTING:
3412-
__fallthrough;
34133409
default:
34143410
LOG_WRN("Call timeout, status %s", bt_ag_get_call_state_string(call_state));
34153411

@@ -4439,22 +4435,16 @@ int bt_hfp_ag_set_indicator(struct bt_hfp_ag *ag, enum bt_hfp_ag_indicator index
44394435

44404436
switch (index) {
44414437
case BT_HFP_AG_SERVICE_IND:
4442-
__fallthrough;
44434438
case BT_HFP_AG_SIGNAL_IND:
4444-
__fallthrough;
44454439
case BT_HFP_AG_ROAM_IND:
4446-
__fallthrough;
44474440
case BT_HFP_AG_BATTERY_IND:
44484441
if ((ag_ind[(uint8_t)index].min > value) || (ag_ind[(uint8_t)index].max < value)) {
44494442
return -EINVAL;
44504443
}
44514444
break;
44524445
case BT_HFP_AG_CALL_IND:
4453-
__fallthrough;
44544446
case BT_HFP_AG_CALL_SETUP_IND:
4455-
__fallthrough;
44564447
case BT_HFP_AG_CALL_HELD_IND:
4457-
__fallthrough;
44584448
default:
44594449
return -EINVAL;
44604450
}

0 commit comments

Comments
 (0)