]> git.karo-electronics.de Git - linux-beck.git/commit
sfc: Remove unnecessary use of atomic_t
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 27 Aug 2013 22:04:29 +0000 (23:04 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 29 Aug 2013 17:12:04 +0000 (18:12 +0100)
commit251111d9a1bd9a26e25446d876156bf265858cb5
tree7e4a93373f504f199e8542d772c3fe10f6f3cd70
parent2f4bcdcca796ca7d385e3f870e552a2d85f0a7c9
sfc: Remove unnecessary use of atomic_t

We can set, get and compare-and-exchange without using atomic_t.
Change efx_mcdi_iface::state to the enum type we really wanted it to
be.

Suggested-by: David Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/mcdi.h