]> Pileus Git - ~andy/linux/blobdiff - drivers/staging/et131x/et131x_adapter.h
Staging et131x: kill refcount
[~andy/linux] / drivers / staging / et131x / et131x_adapter.h
index 2b553199680fd13aa741dddaddf839b9d2a1baf7..04de4ff3e874124bdffc2cda5a282be86d118b1d 100644 (file)
 #define MP_TEST_FLAGS(_M, _F)       (((_M)->Flags & (_F)) == (_F))
 #define MP_IS_FLAG_CLEAR(_M, _F)    (((_M)->Flags & (_F)) == 0)
 
-#define MP_INC_RCV_REF(_A)          atomic_inc(&(_A)->RcvRefCount)
-#define MP_DEC_RCV_REF(_A)          atomic_dec(&(_A)->RcvRefCount)
-#define MP_GET_RCV_REF(_A)          atomic_read(&(_A)->RcvRefCount)
-
 /* Macros specific to the private adapter structure */
 #define MP_TCB_RESOURCES_AVAILABLE(_M) ((_M)->TxRing.nBusySend < NUM_TCB)
 #define MP_TCB_RESOURCES_NOT_AVAILABLE(_M) ((_M)->TxRing.nBusySend >= NUM_TCB)
@@ -313,8 +309,6 @@ struct et131x_adapter {
        MP_POWER_MGMT PoMgmt;
        INTERRUPT_t CachedMaskValue;
 
-       atomic_t RcvRefCount;   /* Num packets not yet returned */
-
        /* Xcvr status at last poll */
        MI_BMSR_t Bmsr;