Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfilter: xt_LOG: don't use xchg() for simple assignment

At least on ia64 the (bogus) use of xchg() here results in the compiler
warning about an unused expression result. As only an assignment is
intended here, convert it to such.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Jan Beulich and committed by
Pablo Neira Ayuso
f3d229c6 1d5c88e3

+1 -1
+1 -1
include/net/netfilter/xt_log.h
··· 47 47 if (likely(m != &emergency)) 48 48 kfree(m); 49 49 else { 50 - xchg(&emergency_ptr, m); 50 + emergency_ptr = m; 51 51 local_bh_enable(); 52 52 } 53 53 }