]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Elminate spurious print_mac() calls.
authorDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2008 00:50:22 +0000 (16:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2008 00:50:22 +0000 (16:50 -0800)
commit745260c86b93d4523376454df4d681026b5c6b6f
tree6939205a4c21453ae41bae92ce8c10a728c4bae3
parentdb1ab3b356fe1daac896d3eaccd744efceec7678
[NET]: Elminate spurious print_mac() calls.

Patrick McHardy notes that print_mac() can get invoked
even if the result it unused (f.e. as an argument to
pr_debug() when DEBUG is not defined).

Mark this function as "__pure" to eliminate this problem.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_ether.h