linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] staging: rtl8188eu: use is_multicast_ether_addr
@ 2018-08-02 17:18 Michael Straube
  2018-08-02 17:18 ` [PATCH 2/6] " Michael Straube
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Michael Straube @ 2018-08-02 17:18 UTC (permalink / raw)
  To: gregkh; +Cc: devel, linux-kernel, Michael Straube

Use is_multicast_ether_addr instead of custom IS_MCAST in
os_dep/recv_linux.c.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
---
 drivers/staging/rtl8188eu/os_dep/recv_linux.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8188eu/os_dep/recv_linux.c b/drivers/staging/rtl8188eu/os_dep/recv_linux.c
index deadf26ea2aa..6f74f49bf3ab 100644
--- a/drivers/staging/rtl8188eu/os_dep/recv_linux.c
+++ b/drivers/staging/rtl8188eu/os_dep/recv_linux.c
@@ -84,11 +84,11 @@ int rtw_recv_indicatepkt(struct adapter *padapter,
 		struct sta_info *psta = NULL;
 		struct sta_priv *pstapriv = &padapter->stapriv;
 		struct rx_pkt_attrib *pattrib = &precv_frame->attrib;
-		int bmcast = IS_MCAST(pattrib->dst);
+		bool mcast = is_multicast_ether_addr(pattrib->dst);
 
 		if (memcmp(pattrib->dst, myid(&padapter->eeprompriv),
 			   ETH_ALEN)) {
-			if (bmcast) {
+			if (mcast) {
 				psta = rtw_get_bcmc_stainfo(padapter);
 				pskb2 = skb_clone(skb, GFP_ATOMIC);
 			} else {
@@ -104,7 +104,7 @@ int rtw_recv_indicatepkt(struct adapter *padapter,
 
 				rtw_xmit_entry(skb, pnetdev);
 
-				if (bmcast)
+				if (mcast)
 					skb = pskb2;
 				else
 					goto _recv_indicatepkt_end;
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-08-05 14:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-02 17:18 [PATCH 1/6] staging: rtl8188eu: use is_multicast_ether_addr Michael Straube
2018-08-02 17:18 ` [PATCH 2/6] " Michael Straube
2018-08-05 14:16   ` Greg KH
2018-08-02 17:18 ` [PATCH 3/6] staging: rtl8188eu: cleanup block comment - style Michael Straube
2018-08-02 17:18 ` [PATCH 4/6] staging: rtl8188eu: remove whitespace " Michael Straube
2018-08-02 17:18 ` [PATCH 5/6] staging: rtl8188eu: use is_multicast_ether_addr Michael Straube
2018-08-05 14:17   ` Greg KH
2018-08-02 17:18 ` [PATCH 6/6] staging: rtl8188eu: remove whitespace, add missing blank line Michael Straube

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).