mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2025-01-15 16:25:35 +00:00
MA-20998-4 mxm_wifiex: Fix unannotated fall-through between switch labels build error
Fix build error like below: mxm_wifiex/wlan_src/mlinux/moal_priv.c:289:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] case 1: /* Check type range */ ^ Change-Id: If9a5ee43554b57f659c32ca29ee0813364ddf94c Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
This commit is contained in:
parent
8a2d3d5f7f
commit
e1b6635d62
1 changed files with 6 additions and 0 deletions
|
@ -286,6 +286,7 @@ static int woal_get_signal(moal_private *priv, struct iwreq *wrq)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
/* Fall through */
|
/* Fall through */
|
||||||
|
fallthrough;
|
||||||
case 1: /* Check type range */
|
case 1: /* Check type range */
|
||||||
if (in_data[0] < 1 || in_data[0] > 3) {
|
if (in_data[0] < 1 || in_data[0] > 3) {
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
@ -5137,18 +5138,23 @@ static int woal_do_sdio_mpa_ctrl(moal_private *priv, struct iwreq *wrq)
|
||||||
case 6:
|
case 6:
|
||||||
misc->param.mpa_ctrl.rx_max_ports = data[5];
|
misc->param.mpa_ctrl.rx_max_ports = data[5];
|
||||||
/* fall through */
|
/* fall through */
|
||||||
|
fallthrough;
|
||||||
case 5:
|
case 5:
|
||||||
misc->param.mpa_ctrl.tx_max_ports = data[4];
|
misc->param.mpa_ctrl.tx_max_ports = data[4];
|
||||||
/* fall through */
|
/* fall through */
|
||||||
|
fallthrough;
|
||||||
case 4:
|
case 4:
|
||||||
misc->param.mpa_ctrl.rx_buf_size = data[3];
|
misc->param.mpa_ctrl.rx_buf_size = data[3];
|
||||||
/* fall through */
|
/* fall through */
|
||||||
|
fallthrough;
|
||||||
case 3:
|
case 3:
|
||||||
misc->param.mpa_ctrl.tx_buf_size = data[2];
|
misc->param.mpa_ctrl.tx_buf_size = data[2];
|
||||||
/* fall through */
|
/* fall through */
|
||||||
|
fallthrough;
|
||||||
case 2:
|
case 2:
|
||||||
misc->param.mpa_ctrl.rx_enable = data[1];
|
misc->param.mpa_ctrl.rx_enable = data[1];
|
||||||
/* fall through */
|
/* fall through */
|
||||||
|
fallthrough;
|
||||||
case 1:
|
case 1:
|
||||||
/* Set cmd */
|
/* Set cmd */
|
||||||
req->action = MLAN_ACT_SET;
|
req->action = MLAN_ACT_SET;
|
||||||
|
|
Loading…
Reference in a new issue