From patchwork Mon Jan 8 08:54:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander 'lynxis' Couzens X-Patchwork-Id: 856752 X-Patchwork-Delegate: lynxis@fe80.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XYqad5xs"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zFTdX01DTz9s7h for ; Mon, 8 Jan 2018 19:55:59 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+mGJTwG6tKBRNSScixlYHzOclKNYQ1OEKFoNsVlJeHM=; b=XYqad5xsUnCUZL VFVPJ931rfu4FYBA2urQ9HI/uQi7cWLmDw9Slbh1CBRzxGSy4mlILks3Rs2gd8kpooaEboe5HKBqu Evsfbqv720luW12/SfyZSQuizJa+57wrhDt1GQxhxkcBKLMeYTlxA/q1Nlcw/mc4qmHNtOo6SxYOb ULVwbTNXoC0JZFQOuUQRoEMvRYeTJp3b0DdjRsa1u0uexkp3IgmLDzSqXSz6cnLCZO+A5r/mevOet 1DiXMlssx8lartv+I5VWXz5ZOJ2YDdq+4m60ezTvBVka5Lx8ueI/4ZYzWrzVEtfN5bDmyJKgrhaix daamdNy5I7xptizuswfQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eYTDc-0001KM-74; Mon, 08 Jan 2018 08:55:44 +0000 Received: from mail.base45.de ([2001:67c:2050:320::77]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eYTDB-0000iM-JY for lede-dev@lists.infradead.org; Mon, 08 Jan 2018 08:55:26 +0000 Received: from x59cc8a04.dyn.telefonica.de ([89.204.138.4] helo=lazus.yip) by mail.base45.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1eYTD7-0004Ye-Hc; Mon, 08 Jan 2018 08:55:13 +0000 From: Alexander Couzens To: lede-dev@lists.infradead.org Date: Mon, 8 Jan 2018 09:54:59 +0100 Message-Id: <20180108085459.9961-2-lynxis@fe80.eu> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180108085459.9961-1-lynxis@fe80.eu> References: <20180108085459.9961-1-lynxis@fe80.eu> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180108_005518_147100_4D1E2E0E X-CRM114-Status: UNSURE ( 7.95 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.4 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [89.204.138.4 listed in dnsbl.sorbs.net] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: [LEDE-DEV] [PATCH 2/2] ltq-atm: cleanup unused variables and functions X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Schiller MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Martin Schiller Signed-off-by: Martin Schiller --- package/kernel/lantiq/ltq-atm/src/ltq_atm.c | 41 ----------------------------- 1 file changed, 41 deletions(-) diff --git a/package/kernel/lantiq/ltq-atm/src/ltq_atm.c b/package/kernel/lantiq/ltq-atm/src/ltq_atm.c index f306d19364fd..0b9d7a05aba0 100644 --- a/package/kernel/lantiq/ltq-atm/src/ltq_atm.c +++ b/package/kernel/lantiq/ltq-atm/src/ltq_atm.c @@ -191,8 +191,6 @@ struct sk_buff* atm_alloc_tx(struct atm_vcc *, unsigned int); static inline void atm_free_tx_skb_vcc(struct sk_buff *, struct atm_vcc *); static inline struct sk_buff *get_skb_rx_pointer(unsigned int); static inline int get_tx_desc(unsigned int); -static struct sk_buff* skb_duplicate(struct sk_buff *); -static struct sk_buff* skb_break_away_from_protocol(struct sk_buff *); /* * mailbox handler and signal function @@ -523,7 +521,6 @@ static int ppe_send(struct atm_vcc *vcc, struct sk_buff *skb) unsigned long flags; struct tx_descriptor reg_desc = {0}; struct tx_inband_header *header; - struct sk_buff *new_skb; if ( vcc == NULL || skb == NULL ) return -EINVAL; @@ -856,44 +853,6 @@ static inline int get_tx_desc(unsigned int conn) return desc_base; } -static struct sk_buff* skb_duplicate(struct sk_buff *skb) -{ - struct sk_buff *new_skb; - - new_skb = alloc_skb_tx(skb->len); - if ( new_skb == NULL ) - return NULL; - - skb_put(new_skb, skb->len); - memcpy(new_skb->data, skb->data, skb->len); - - return new_skb; -} - -static struct sk_buff* skb_break_away_from_protocol(struct sk_buff *skb) -{ - struct sk_buff *new_skb; - - if ( skb_shared(skb) ) { - new_skb = skb_clone(skb, GFP_ATOMIC); - if ( new_skb == NULL ) - return NULL; - } else - new_skb = skb_get(skb); - - skb_dst_drop(new_skb); -#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) - nf_conntrack_put(new_skb->nfct); - new_skb->nfct = NULL; - #ifdef CONFIG_BRIDGE_NETFILTER - nf_bridge_put(new_skb->nf_bridge); - new_skb->nf_bridge = NULL; - #endif -#endif - - return new_skb; -} - static void free_tx_ring(unsigned int queue) { unsigned long flags;