Skip to content

Commit

Permalink
mwifiex: do not short circuit exit from mwifiex_set_mgmt_ies
Browse files Browse the repository at this point in the history
Without this change, the code simply exits after calling
mwifiex_uap_set_head_tail_ies, leving the call to
mwifiex_set_mgmt_beacon_data_ies as dead code.

Coverity CID #1271292

Signed-off-by: John W. Linville <[email protected]>
Acked-by: Amitkumar Karwar <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
  • Loading branch information
linvjw authored and Kalle Valo committed Jul 21, 2015
1 parent 722d266 commit 8b2c621
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/mwifiex/ie.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ int mwifiex_set_mgmt_ies(struct mwifiex_private *priv,
int ret;

ret = mwifiex_uap_parse_tail_ies(priv, info);

if (ret)
return ret;

return mwifiex_set_mgmt_beacon_data_ies(priv, info);
Expand Down

0 comments on commit 8b2c621

Please sign in to comment.