]> git.openfabrics.org - ~shefty/rdma-dev.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)
commit94c84ee61478ff19411fb684d42e3c4f84ae7e88
tree62db3806ec196154112c1b46c7ea583d8da4b3ea
parent462e58f2b6f2f3ca113b44794f2c35ee8e792b93
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