Commit f83a0d0a authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Tony Nguyen

fm10k: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding a couple of break statements instead of
just letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 9ded647a
...@@ -1039,6 +1039,7 @@ static s32 fm10k_mbx_create_reply(struct fm10k_hw *hw, ...@@ -1039,6 +1039,7 @@ static s32 fm10k_mbx_create_reply(struct fm10k_hw *hw,
case FM10K_STATE_CLOSED: case FM10K_STATE_CLOSED:
/* generate new header based on data */ /* generate new header based on data */
fm10k_mbx_create_disconnect_hdr(mbx); fm10k_mbx_create_disconnect_hdr(mbx);
break;
default: default:
break; break;
} }
...@@ -2017,6 +2018,7 @@ static s32 fm10k_sm_mbx_process_reset(struct fm10k_hw *hw, ...@@ -2017,6 +2018,7 @@ static s32 fm10k_sm_mbx_process_reset(struct fm10k_hw *hw,
case FM10K_STATE_CONNECT: case FM10K_STATE_CONNECT:
/* Update remote value to match local value */ /* Update remote value to match local value */
mbx->remote = mbx->local; mbx->remote = mbx->local;
break;
default: default:
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment