net: ethernet: ti: netcp_core: remove unused compl queue mapping
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Mon, 24 Apr 2017 20:54:06 +0000 (23:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Apr 2017 15:54:47 +0000 (11:54 -0400)
This code is unused and probably was unintentionally left while
moving completion queue mapping in submit function.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_core.c

index 9027c9c509b581cda23c00006124ff3839a6ae2c..729a7da90b5bed279d58d72cfc53cfa6fc2e9c80 100644 (file)
@@ -1134,7 +1134,6 @@ netcp_tx_map_skb(struct sk_buff *skb, struct netcp_intf *netcp)
                u32 buf_len = skb_frag_size(frag);
                dma_addr_t desc_dma;
                u32 desc_dma_32;
-               u32 pkt_info;
 
                dma_addr = dma_map_page(dev, page, page_offset, buf_len,
                                        DMA_TO_DEVICE);
@@ -1151,9 +1150,6 @@ netcp_tx_map_skb(struct sk_buff *skb, struct netcp_intf *netcp)
                }
 
                desc_dma = knav_pool_desc_virt_to_dma(netcp->tx_pool, ndesc);
-               pkt_info =
-                       (netcp->tx_compl_qid & KNAV_DMA_DESC_RETQ_MASK) <<
-                               KNAV_DMA_DESC_RETQ_SHIFT;
                set_pkt_info(dma_addr, buf_len, 0, ndesc);
                desc_dma_32 = (u32)desc_dma;
                set_words(&desc_dma_32, 1, &pdesc->next_desc);