mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
mac80211: simplify code in ieee80211_prepare_and_rx_handle
No need to assign the return value of prepare_for_handlers to a variable if the only usage is to test it. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
87ee475ef6
commit
40791942ec
1 changed files with 1 additions and 3 deletions
|
@ -3191,13 +3191,11 @@ static bool ieee80211_prepare_and_rx_handle(struct ieee80211_rx_data *rx,
|
||||||
struct ieee80211_sub_if_data *sdata = rx->sdata;
|
struct ieee80211_sub_if_data *sdata = rx->sdata;
|
||||||
struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb);
|
struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb);
|
||||||
struct ieee80211_hdr *hdr = (void *)skb->data;
|
struct ieee80211_hdr *hdr = (void *)skb->data;
|
||||||
int prepares;
|
|
||||||
|
|
||||||
rx->skb = skb;
|
rx->skb = skb;
|
||||||
status->rx_flags |= IEEE80211_RX_RA_MATCH;
|
status->rx_flags |= IEEE80211_RX_RA_MATCH;
|
||||||
prepares = prepare_for_handlers(rx, hdr);
|
|
||||||
|
|
||||||
if (!prepares)
|
if (!prepare_for_handlers(rx, hdr))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!consume) {
|
if (!consume) {
|
||||||
|
|
Loading…
Reference in a new issue