Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S972745AbdDXUyW (ORCPT ); Mon, 24 Apr 2017 16:54:22 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:36685 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S971789AbdDXUyL (ORCPT ); Mon, 24 Apr 2017 16:54:11 -0400 From: Ivan Khoronzhuk To: netdev@vger.kernel.org, w-kwok2@ti.com, m-karicheri2@ti.com Cc: linux-kernel@vger.kernel.org, grygorii.strashko@ti.com, Ivan Khoronzhuk Subject: [PATCH] net: ethernet: ti: netcp_core: remove unused compl queue mapping Date: Mon, 24 Apr 2017 23:54:06 +0300 Message-Id: <1493067246-3247-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1157 Lines: 34 This code is unused and probably was unintentionally left while moving completion queue mapping in submit function. Signed-off-by: Ivan Khoronzhuk --- Based on net-next/master drivers/net/ethernet/ti/netcp_core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/ti/netcp_core.c b/drivers/net/ethernet/ti/netcp_core.c index 9027c9c..729a7da 100644 --- a/drivers/net/ethernet/ti/netcp_core.c +++ b/drivers/net/ethernet/ti/netcp_core.c @@ -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); -- 2.7.4