bnx2: use READ_ONCE() instead of barrier()
authorEric Dumazet <edumazet@google.com>
Sat, 19 Nov 2016 22:57:11 +0000 (14:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2016 16:32:34 +0000 (11:32 -0500)
commitb668534c1d9b80f4cda4d761eb11d3a6c9f4ced8
tree5d65a634c526447fdc64421f1bc5102cd7da18df
parentd21dbdfe0afb5195607d207f894fe86d5b322d46
bnx2: use READ_ONCE() instead of barrier()

barrier() is a big hammer compared to READ_ONCE(),
and requires comments explaining what is protected.

READ_ONCE() is more precise and compiler should generate
better overall code.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c