Skip to content

Commit

Permalink
netfilter: xt_LOG: don't use xchg() for simple assignment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Beulich authored and Pablo Neira Ayuso committed Mar 26, 2012
1 parent 1d5c88e commit f3d229c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/netfilter/xt_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static void sb_close(struct sbuff *m)
if (likely(m != &emergency))
kfree(m);
else {
xchg(&emergency_ptr, m);
emergency_ptr = m;
local_bh_enable();
}
}
Expand Down

0 comments on commit f3d229c

Please sign in to comment.