From patchwork Sat Dec 20 12:29:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5522371 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 95A6CBEEA8 for ; Sat, 20 Dec 2014 12:27:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A6B2A2014A for ; Sat, 20 Dec 2014 12:27:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CB92B2013D for ; Sat, 20 Dec 2014 12:27:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752841AbaLTM1N (ORCPT ); Sat, 20 Dec 2014 07:27:13 -0500 Received: from mail-wg0-f42.google.com ([74.125.82.42]:61421 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752645AbaLTM1M (ORCPT ); Sat, 20 Dec 2014 07:27:12 -0500 Received: by mail-wg0-f42.google.com with SMTP id k14so3376394wgh.29 for ; Sat, 20 Dec 2014 04:27:11 -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=gT4W4r9GTDEbxRFdyFcefxKS6ewsH6vsgtnFqgtfv0E=; b=f9bClkCRLJ2WnWVpKRDpSQaa7MP7WIq2X/FxVhAJg8f7DHnciCLwKAE+dextHXU3sI TfLcKHJoF9IjdQHy/Xuf2HDV2yrDGRAlkODGj4ApURIhIPrh8EXNifSu69xvgmNr3qDG ooHd9Byhhh5OKSI4HZ9BjAwJbkb1r0sgkfGFkX+A7jUns6gltnXcQml/n9j+D6LK+KGa E8ua9ztCJ8WhOMNyjfa036JxbNwaAhmKbXK1EAG0tp3UoT0db555RJEx8r4LsvNHrltk U90Jx2FGMwaik4OMpWhs97oh+zdeCask1huF0647pTobjB9fR9CH/uHl7+ECVT/XaPjU xg8Q== X-Gm-Message-State: ALoCoQkVrWL5FQnWD0QENp1tixKUxCAGc+R+weE3pFjc7QAtg02Wo6qF0ooM+jVfJ1gyPMcWYzF2 X-Received: by 10.180.228.37 with SMTP id sf5mr14501950wic.35.1419078431696; Sat, 20 Dec 2014 04:27:11 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id ej10sm5839972wib.2.2014.12.20.04.27.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Dec 2014 04:27:11 -0800 (PST) From: Rickard Strandqvist To: Stanislav Yakovlev , "John W. Linville" Cc: Rickard Strandqvist , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: wireless: ipw2x00: ipw2200.c: Remove unused function Date: Sat, 20 Dec 2014 13:29:59 +0100 Message-Id: <1419078599-31118-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 Remove the function ipw_alive() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/net/wireless/ipw2x00/ipw2200.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c index edc3443..2f830ca 100644 --- a/drivers/net/wireless/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/ipw2x00/ipw2200.c @@ -3021,20 +3021,6 @@ static void ipw_remove_current_network(struct ipw_priv *priv) spin_unlock_irqrestore(&priv->ieee->lock, flags); } -/** - * Check that card is still alive. - * Reads debug register from domain0. - * If card is present, pre-defined value should - * be found there. - * - * @param priv - * @return 1 if card is present, 0 otherwise - */ -static inline int ipw_alive(struct ipw_priv *priv) -{ - return ipw_read32(priv, 0x90) == 0xd55555d5; -} - /* timeout in msec, attempted in 10-msec quanta */ static int ipw_poll_bit(struct ipw_priv *priv, u32 addr, u32 mask, int timeout)