]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix debugfs_sta print_mac() warning
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 21 Feb 2008 10:22:12 +0000 (11:22 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 29 Feb 2008 20:41:38 +0000 (15:41 -0500)
commit9e35df2a4942d20d0ed5e89e3c9e8e5ca5b7be66
treea46cf19d134d66de32a3ccd44dce80aab9722d4a
parent00c6f1d999389063e47b44c05aad43b5b6ffcc95
mac80211: fix debugfs_sta print_mac() warning

When print_mac() was marked as __pure to avoid emitting a function
call in pr_debug() scenarios, a warning in this code surfaced since
it relies on the fact that the buffer is modified and doesn't use
the return value. This patch makes it use the return value instead.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reported-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/debugfs_sta.c