kernel: ltq-vdsl-vr9: fix multiple compilation warning
[openwrt/staging/jow.git] / package / kernel / lantiq / ltq-vdsl-vr9 / patches / 300-fix-compilation-warning-fallthrough.patch
1 --- a/src/common/drv_dsl_cpe_api.c
2 +++ b/src/common/drv_dsl_cpe_api.c
3 @@ -1922,7 +1922,7 @@ DSL_Error_t DSL_DRV_AutobootControlSet(
4 }
5 /* no break */
6 /* ... pass to restart*/
7 -
8 + fallthrough;
9 case DSL_AUTOBOOT_CTRL_RESTART:
10 case DSL_AUTOBOOT_CTRL_RESTART_FULL:
11 if (bAutobootDisable && pData->data.nCommand == DSL_AUTOBOOT_CTRL_RESTART)
12 --- a/src/pm/drv_dsl_cpe_pm_core.c
13 +++ b/src/pm/drv_dsl_cpe_pm_core.c
14 @@ -2325,16 +2325,18 @@ DSL_Error_t DSL_DRV_PM_CountersReset(
15 }
16 #endif /* #ifdef INCLUDE_DSL_CPE_PM_HISTORY*/
17
18 - if (ResetType == DSL_PM_RESET_HISTORY)
19 - break;
20 + if (ResetType == DSL_PM_RESET_HISTORY)
21 + break;
22
23 + fallthrough;
24 case DSL_PM_RESET_TOTAL:
25 #ifdef INCLUDE_DSL_CPE_PM_TOTAL_COUNTERS
26 memset(EpData.pRecTotal, nFillValue, EpData.nEpRecElementSize);
27 #endif /* #ifdef INCLUDE_DSL_CPE_PM_TOTAL_COUNTERS*/
28 - if (ResetType == DSL_PM_RESET_TOTAL)
29 - break;
30 + if (ResetType == DSL_PM_RESET_TOTAL)
31 + break;
32
33 + fallthrough;
34 case DSL_PM_RESET_HISTORY_SHOWTIME:
35 #ifdef INCLUDE_DSL_CPE_PM_SHOWTIME_COUNTERS
36 nErrCode = DSL_DRV_PM_HistoryDelete(pContext, EpData.pHistShowtime );