mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
|
--- a/src/common/drv_dsl_cpe_api.c
|
||
|
+++ b/src/common/drv_dsl_cpe_api.c
|
||
|
@@ -1922,7 +1922,7 @@ DSL_Error_t DSL_DRV_AutobootControlSet(
|
||
|
}
|
||
|
/* no break */
|
||
|
/* ... pass to restart*/
|
||
|
-
|
||
|
+ fallthrough;
|
||
|
case DSL_AUTOBOOT_CTRL_RESTART:
|
||
|
case DSL_AUTOBOOT_CTRL_RESTART_FULL:
|
||
|
if (bAutobootDisable && pData->data.nCommand == DSL_AUTOBOOT_CTRL_RESTART)
|
||
|
--- a/src/pm/drv_dsl_cpe_pm_core.c
|
||
|
+++ b/src/pm/drv_dsl_cpe_pm_core.c
|
||
|
@@ -2325,16 +2325,18 @@ DSL_Error_t DSL_DRV_PM_CountersReset(
|
||
|
}
|
||
|
#endif /* #ifdef INCLUDE_DSL_CPE_PM_HISTORY*/
|
||
|
|
||
|
- if (ResetType == DSL_PM_RESET_HISTORY)
|
||
|
- break;
|
||
|
+ if (ResetType == DSL_PM_RESET_HISTORY)
|
||
|
+ break;
|
||
|
|
||
|
+ fallthrough;
|
||
|
case DSL_PM_RESET_TOTAL:
|
||
|
#ifdef INCLUDE_DSL_CPE_PM_TOTAL_COUNTERS
|
||
|
memset(EpData.pRecTotal, nFillValue, EpData.nEpRecElementSize);
|
||
|
#endif /* #ifdef INCLUDE_DSL_CPE_PM_TOTAL_COUNTERS*/
|
||
|
- if (ResetType == DSL_PM_RESET_TOTAL)
|
||
|
- break;
|
||
|
+ if (ResetType == DSL_PM_RESET_TOTAL)
|
||
|
+ break;
|
||
|
|
||
|
+ fallthrough;
|
||
|
case DSL_PM_RESET_HISTORY_SHOWTIME:
|
||
|
#ifdef INCLUDE_DSL_CPE_PM_SHOWTIME_COUNTERS
|
||
|
nErrCode = DSL_DRV_PM_HistoryDelete(pContext, EpData.pHistShowtime );
|