diff options
author | Joe Perches <joe@perches.com> | 2012-05-08 10:11:56 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-09 13:52:23 -0700 |
commit | 14fc42355f10199f39bc38dd2d3e9288a31e770c (patch) | |
tree | 9e9c84d9f6046882c014a7ab1499cf08358de210 /drivers/staging/vt6656 | |
parent | 82a74d4a8022fc01b99550e4cd6b90802acd4ef9 (diff) | |
download | linux-stable-14fc42355f10199f39bc38dd2d3e9288a31e770c.tar.gz linux-stable-14fc42355f10199f39bc38dd2d3e9288a31e770c.tar.bz2 linux-stable-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/vt6656')
-rw-r--r-- | drivers/staging/vt6656/dpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/dpc.c b/drivers/staging/vt6656/dpc.c index c0edf97535dc..e4bdf2a2b582 100644 --- a/drivers/staging/vt6656/dpc.c +++ b/drivers/staging/vt6656/dpc.c @@ -452,7 +452,7 @@ RXbBulkInProcessData ( } } - if (!is_multicast_ether_addr(pMACHeader->abyAddr1) && !is_broadcast_ether_addr(pMACHeader->abyAddr1)) { + if (!is_multicast_ether_addr(pMACHeader->abyAddr1)) { if ( WCTLbIsDuplicate(&(pDevice->sDupRxCache), (PS802_11Header) pbyFrame) ) { pDevice->s802_11Counter.FrameDuplicateCount++; return FALSE; |