diff options
author | Joe Perches | 2012-05-08 19:11:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2012-05-09 22:52:23 +0200 |
commit | 14fc42355f10199f39bc38dd2d3e9288a31e770c (patch) | |
tree | 9e9c84d9f6046882c014a7ab1499cf08358de210 /drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c | |
parent | staging: line6/pcm.c: Removed trailing whitespace (diff) | |
download | kernel-qcow2-linux-14fc42355f10199f39bc38dd2d3e9288a31e770c.tar.gz kernel-qcow2-linux-14fc42355f10199f39bc38dd2d3e9288a31e770c.tar.xz kernel-qcow2-linux-14fc42355f10199f39bc38dd2d3e9288a31e770c.zip |
staging: Remove test of is_broadcast with is_multicast
A broadcast packet is a multicast packet, no need to test twice.
Reorder one defective test in rtl_core of is_multi_ether_addr
before is_broadcast_ether_addr as the is_multi returns true for
broadcast frames.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c')
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c index 957ce4ef48b5..06a9824bbff1 100644 --- a/drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c +++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c @@ -350,7 +350,7 @@ bool GetTs( // We do not build any TS for Broadcast or Multicast stream. // So reject these kinds of search here. // - if(is_broadcast_ether_addr(Addr) || is_multicast_ether_addr(Addr)) + if (is_multicast_ether_addr(Addr)) { IEEE80211_DEBUG(IEEE80211_DL_ERR, "get TS for Broadcast or Multicast\n"); return false; |