ath10k: remove ce_op_state
authorMichal Kazior <michal.kazior@tieto.com>
Tue, 27 Aug 2013 11:07:59 +0000 (13:07 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sun, 1 Sep 2013 06:27:49 +0000 (09:27 +0300)
It was only written to and never read back. No use
to keep it around.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/ce.c
drivers/net/wireless/ath/ath10k/ce.h

index c8b7d210b4dc0187e29509e17f239631fcdc296c..c391f4637bd23c4752e4cf8e6a5db132fb2f397d 100644 (file)
@@ -1089,7 +1089,6 @@ static struct ce_state *ath10k_ce_init_state(struct ath10k *ar,
        ce_state->ar = ar;
        ce_state->id = ce_id;
        ce_state->ctrl_addr = ctrl_addr;
-       ce_state->state = CE_RUNNING;
        ce_state->attr_flags = attr->flags;
        ce_state->src_sz_max = attr->src_sz_max;
 
@@ -1173,7 +1172,6 @@ void ath10k_ce_deinit(struct ce_state *ce_state)
                kfree(ce_state->dest_ring);
        }
 
-       ce_state->state = CE_UNUSED;
        ce_state->src_ring = NULL;
        ce_state->dest_ring = NULL;
 }
index c17f07c026f48f585fc8699de1d850e2f1440a9d..6f6bca0ab0a328be90a0cc030b85db129f1ccc6a 100644 (file)
 struct ce_state;
 
 
-/* Copy Engine operational state */
-enum ce_op_state {
-       CE_UNUSED,
-       CE_PAUSED,
-       CE_RUNNING,
-};
-
 #define CE_DESC_FLAGS_GATHER         (1 << 0)
 #define CE_DESC_FLAGS_BYTE_SWAP      (1 << 1)
 #define CE_DESC_FLAGS_META_DATA_MASK 0xFFFC
@@ -124,7 +117,6 @@ struct ce_state {
        unsigned int attr_flags;
 
        u32 ctrl_addr;
-       enum ce_op_state state;
 
        void (*send_cb) (struct ce_state *ce_state,
                         void *per_transfer_send_context,