BNX2X: Fixes atomic_cmpxchg spatch
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 24 Feb 2015 17:24:03 +0000 (12:24 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 Mar 2015 16:59:10 +0000 (11:59 -0500)
commit758d7b0046ee0bfcdeb3d77d750c447b555cb9e2
treebbcd25826614741763e9a4d81ac4f71adb8ff2ce
parentf0cc8de8c3dde10c2bf33b898927351cfc9a460d
BNX2X: Fixes atomic_cmpxchg spatch

The spatch was wrong.  Linux returns the old value on success and appears to
return the current value on failure.  No sense spatching that.
kern/drivers/net/bnx2x/akaros_compat.h
kern/drivers/net/bnx2x/bnx2x_sp.c
scripts/spatch/linux/sync.cocci