projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5612a50
)
rtlwifi: Use is_zero_ether_addr, remove line continuation
author
Joe Perches
<
[email protected]
>
Sat, 17 Mar 2012 19:13:30 +0000
(12:13 -0700)
committer
John W. Linville
<
[email protected]
>
Mon, 9 Apr 2012 20:07:36 +0000
(16:07 -0400)
Use the normal kernel facilities and use %pM
to print the all zero mac address.
Remove unnecessary line continuation.
Signed-off-by: Joe Perches <
[email protected]
>
Acked-by:
[email protected]
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/rtlwifi/cam.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rtlwifi/cam.c
b/drivers/net/wireless/rtlwifi/cam.c
index 5c7d57947d2338731f7fed6e78cd3460114d17c9..3d8cc4a0c86dfba898a23c2a7ef4625d3a3885b7 100644
(file)
--- a/
drivers/net/wireless/rtlwifi/cam.c
+++ b/
drivers/net/wireless/rtlwifi/cam.c
@@
-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");
}
- if ((sta_addr[0]|sta_addr[1]|sta_addr[2]|sta_addr[3]|\
- sta_addr[4]|sta_addr[5]) == 0) {
+ if (is_zero_ether_addr(sta_addr)) {
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;
}
/* Does STA already exist? */