From patchwork Thu Jan 1 15:32:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5556871 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 540FCBF6C3 for ; Thu, 1 Jan 2015 15:52:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 87638201F4 for ; Thu, 1 Jan 2015 15:52:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 85A46201EC for ; Thu, 1 Jan 2015 15:52:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751854AbbAAPwQ (ORCPT ); Thu, 1 Jan 2015 10:52:16 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:50071 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751523AbbAAPwQ (ORCPT ); Thu, 1 Jan 2015 10:52:16 -0500 Received: by mail-wg0-f48.google.com with SMTP id y19so23301101wgg.35 for ; Thu, 01 Jan 2015 07:52:15 -0800 (PST) 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=ShjJ/EIZWdcTVm+1h23u5FRGbp6ovmAEDOC+jntopMY=; b=Hb9u1faXOFIqDdAA1UotupwNTDQixFUjXWMImyluRkbmZaZ8qlaf4QwgKApeYXVgLL lkSZCO4OsHOboDgOf7DgUO/NKJz4Ro7J4TmDr/oAYifKw7vROddN27/j+lXJ4/Wfu/v+ FQtTjMJPght41tEdFIfq5+a1WKGTvxEakyDHbfteAhD+wZUzAhJ0qjBy13lhPTF+8Qw1 T8jS/rWPRgLsW6vNlhffw4vWSOP0+Z0GVOWQe+GH9HJmbBaBSvHCNVTg6Qw67Uxuawpr im0c/CKI9RS0Iv0EXLblHTJ0lAvTWsYxNwKtox0d3EeMMmz0Hx42BEXEhzHpfdaypq3d Hs/A== X-Gm-Message-State: ALoCoQnL/X+6OBz5/QL37iMkpswQd0tgMtvJIp5X8DQn0Gv1YdjHqz8yCKWsmqvrpxWRkHfrOt+J X-Received: by 10.180.90.165 with SMTP id bx5mr127389331wib.15.1420126192207; Thu, 01 Jan 2015 07:29:52 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id cs8sm51030882wib.1.2015.01.01.07.29.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 07:29:51 -0800 (PST) From: Rickard Strandqvist To: Stanislav Yakovlev , Kalle Valo Cc: Rickard Strandqvist , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: wireless: ipw2x00: ipw2100.c: Remove some unused functions Date: Thu, 1 Jan 2015 16:32:53 +0100 Message-Id: <1420126373-27344-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Removes some functions that are not used anywhere: write_nic_dword_auto_inc() write_nic_auto_inc_address() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/net/wireless/ipw2x00/ipw2100.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/net/wireless/ipw2x00/ipw2100.c b/drivers/net/wireless/ipw2x00/ipw2100.c index 6fabea0..fa88839 100644 --- a/drivers/net/wireless/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/ipw2x00/ipw2100.c @@ -433,17 +433,6 @@ static inline void write_nic_byte(struct net_device *dev, u32 addr, u8 val) write_register_byte(dev, IPW_REG_INDIRECT_ACCESS_DATA, val); } -static inline void write_nic_auto_inc_address(struct net_device *dev, u32 addr) -{ - write_register(dev, IPW_REG_AUTOINCREMENT_ADDRESS, - addr & IPW_REG_INDIRECT_ADDR_MASK); -} - -static inline void write_nic_dword_auto_inc(struct net_device *dev, u32 val) -{ - write_register(dev, IPW_REG_AUTOINCREMENT_DATA, val); -} - static void write_nic_memory(struct net_device *dev, u32 addr, u32 len, const u8 * buf) {