summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/mcdi.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2013-08-27 23:04:29 +0100
committerBen Hutchings <bhutchings@solarflare.com>2013-08-29 18:12:04 +0100
commit251111d9a1bd9a26e25446d876156bf265858cb5 (patch)
tree7e4a93373f504f199e8542d772c3fe10f6f3cd70 /drivers/net/ethernet/sfc/mcdi.h
parent2f4bcdcca796ca7d385e3f870e552a2d85f0a7c9 (diff)
downloadlinux-251111d9a1bd9a26e25446d876156bf265858cb5.tar.bz2
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/mcdi.h')
-rw-r--r--drivers/net/ethernet/sfc/mcdi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/mcdi.h b/drivers/net/ethernet/sfc/mcdi.h
index 303d9e88a27f..6c0363a2abdf 100644
--- a/drivers/net/ethernet/sfc/mcdi.h
+++ b/drivers/net/ethernet/sfc/mcdi.h
@@ -46,7 +46,7 @@ enum efx_mcdi_mode {
* @resp_data_len: Response data (SDU or error) length
*/
struct efx_mcdi_iface {
- atomic_t state;
+ enum efx_mcdi_state state;
enum efx_mcdi_mode mode;
wait_queue_head_t wq;
spinlock_t iface_lock;