]> err.no Git - linux-2.6/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)
commitf3af89d1aaaf2d2ef3bc6afe5eadb7127c51fe12
treea46cf19d134d66de32a3ccd44dce80aab9722d4a
parent665e8aafb4e0826caec9db25617b186ea3f3ec91
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