Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68e052d5 authored by Joe Perches's avatar Joe Perches Committed by John W. Linville
Browse files

rtlwifi: Use is_zero_ether_addr, remove line continuation



Use the normal kernel facilities and use %pM
to print the all zero mac address.

Remove unnecessary line continuation.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatar <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5612a508
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -328,10 +328,9 @@ void rtl_cam_del_entry(struct ieee80211_hw *hw, u8 *sta_addr)
		RT_TRACE(rtlpriv, COMP_SEC, DBG_EMERG, "sta_addr is NULL\n");
		RT_TRACE(rtlpriv, COMP_SEC, DBG_EMERG, "sta_addr is NULL\n");
	}
	}


	if ((sta_addr[0]|sta_addr[1]|sta_addr[2]|sta_addr[3]|\
	if (is_zero_ether_addr(sta_addr)) {
				sta_addr[4]|sta_addr[5]) == 0) {
		RT_TRACE(rtlpriv, COMP_SEC, DBG_EMERG,
		RT_TRACE(rtlpriv, COMP_SEC, DBG_EMERG,
			 "sta_addr is 00:00:00:00:00:00\n");
			 "sta_addr is %pM\n", sta_addr);
		return;
		return;
	}
	}
	/* Does STA already exist? */
	/* Does STA already exist? */