]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: use compare_ether_addr on MAC addresses instead of memcmp
authorJonathan Bither <jonbither@gmail.com>
Thu, 12 Apr 2012 19:44:47 +0000 (15:44 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Apr 2012 18:16:59 +0000 (14:16 -0400)
commita99b91ce9e508cabe487cefe23451474cd832ae2
tree62db3806ec196154112c1b46c7ea583d8da4b3ea
parent5e10afac9cdc8aa0fea861f3341bbc24c62c46eb
ath5k: use compare_ether_addr on MAC addresses instead of memcmp

Following Felix's recent patchset as an example I have replaced memcmp with
compare_ether_addr.

"Because of the constant size and guaranteed 16 bit alignment, the inline
compare_ether_addr function is much cheaper than calling memcmp."

Signed-off-by: Jonathan Bither <jonbither@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c