qcacld-3.0: Return success in wlan_hdd_cfg80211_register_frames

Currently wlan_hdd_cfg80211_register_frames falls through to error
handling at the end of the success path. Return success instead.

Change-Id: I28eda918d3d5858cc42ef3958abe918b9ed788e9
CRs-Fixed: 2240003
This commit is contained in:
Dustin Brown 2018-05-10 13:22:18 -07:00 • committed by nshrivas
commit 237baeebc1

View file

@ -15689,6 +15689,8 @@ int wlan_hdd_cfg80211_register_frames(struct hdd_adapter *adapter)
goto dereg_wnm_bss_action_frm;
}
return 0;
dereg_wnm_bss_action_frm:
sme_deregister_mgmt_frame(hHal, SME_SESSION_ID_ANY, type,
(uint8_t *) WNM_BSS_ACTION_FRAME,