From patchwork Sat Sep 24 05:28:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76920 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp199193qgf; Fri, 23 Sep 2016 22:28:20 -0700 (PDT) X-Received: by 10.66.249.233 with SMTP id yx9mr18836525pac.165.1474694900150; Fri, 23 Sep 2016 22:28:20 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yj3si11623953pac.13.2016.09.23.22.28.18; Fri, 23 Sep 2016 22:28:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936368AbcIXF2Q (ORCPT + 27 others); Sat, 24 Sep 2016 01:28:16 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:36537 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753990AbcIXF2O (ORCPT ); Sat, 24 Sep 2016 01:28:14 -0400 Received: by mail-pf0-f178.google.com with SMTP id q2so48281946pfj.3 for ; Fri, 23 Sep 2016 22:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=HyPp5soEqxOI2S5Y8fwX0tQRB5A3rq1Hxkhqkze7ydc=; b=KhH28v6cdKspfYGPrxojY3Htaao+Tep8O0G8aNk6j54CGVSiEX/gIP5/y7DFrHVfC5 1PnL9y6rDP+6Ja1fhKK7F0syA0nrk+Bo1SkQKTHl+iC4pJl1q9lQZp3UZs6d1OSKvHaz 66WkFmXQMopyvuU0l9Hd3+vELWsjX483Xig9I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HyPp5soEqxOI2S5Y8fwX0tQRB5A3rq1Hxkhqkze7ydc=; b=J0dmz3Vnn/pH8XyEGOu4hztFtSp2OfKF+BaQqyt94PydX/pdCOo4yUAshCtoym44j0 4OIDi94xUID0at764CDys8L3qzgvnKoAXslnXl0mUj3D6iRO2p3DpQw6zdk1//ulKq/z 95aRQNuvmq+eN3ea52/igX2c/ir+5h97hJK/DJfbqGMgm8JunmcDCX6Lo+ABq1d91MNI mLaRBybIdQJhnvIC84LmRnZideJvqD6Ilo+8si7LN8BVa7dQOuqExsY4bjJiOGbBxEsY QpSde3aCmfIwKFLdp28rwfyq0mQL7dvtlmhqL1itCfyQ+haYuyNZaLK/kZp3FFxmctMq e5JQ== X-Gm-Message-State: AE9vXwMbTq3kOztoSWHqGei/euOpLCUzRff5n5WQKgUhCbX3dUUr3sfm33Vz8/CE74JTlmC+ X-Received: by 10.98.60.153 with SMTP id b25mr19119239pfk.12.1474694894163; Fri, 23 Sep 2016 22:28:14 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id 83sm15163707pfv.17.2016.09.23.22.28.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 22:28:13 -0700 (PDT) From: Baoyou Xie To: isdn@linux-pingi.de, davem@davemloft.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH 6/6] mISDN: remove unused function Date: Sat, 24 Sep 2016 13:28:02 +0800 Message-Id: <1474694882-25427-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/isdn/mISDN/layer2.c:463:1: warning: no previous declaration for 'IsRR' [-Wmissing-declarations] In fact, this function is called by no one and not exported, so this patch removes it. Signed-off-by: Baoyou Xie --- drivers/isdn/mISDN/layer2.c | 9 --------- 1 file changed, 9 deletions(-) -- 2.7.4 diff --git a/drivers/isdn/mISDN/layer2.c b/drivers/isdn/mISDN/layer2.c index f6ab6027..2519510 100644 --- a/drivers/isdn/mISDN/layer2.c +++ b/drivers/isdn/mISDN/layer2.c @@ -459,15 +459,6 @@ IsDISC(u_char *data) return (data[0] & 0xef) == DISC; } -inline int -IsRR(u_char *data, struct layer2 *l2) -{ - if (test_bit(FLG_MOD128, &l2->flag)) - return data[0] == RR; - else - return (data[0] & 0xf) == 1; -} - static inline int IsSFrame(u_char *data, struct layer2 *l2) {