From patchwork Sat Sep 12 18:10:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 7167071 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 AFED9BF036 for ; Sat, 12 Sep 2015 18:11:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DECF5206F7 for ; Sat, 12 Sep 2015 18:11:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ECBC620723 for ; Sat, 12 Sep 2015 18:11:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752594AbbILSLI (ORCPT ); Sat, 12 Sep 2015 14:11:08 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:34825 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751914AbbILSLH (ORCPT ); Sat, 12 Sep 2015 14:11:07 -0400 Received: by wicge5 with SMTP id ge5so96621858wic.0 for ; Sat, 12 Sep 2015 11:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L9T84W06K7g4BHjl6SjcCo5jddPERjZZ92e1GAe3uRE=; b=FkJ+yPRzTpGlYeH8cu1yIYTWHPC5MswCgbcBsUPLMq7IiwdOWderNi2DgaKSwIOQ3H bctp7v4jMUyYOTWnO1O5D6KR/R2cKuWErTok+NUhcISaneOOsJsBc6P07gasK59ky31d OyJeSOANDiSlbBwX9cu8rdVsNXAyQaoqfDU9qusSVrh5uv17//vkPaxyhT35v/3+YCm3 wqs9kVcJdwaPzuPmxIlznLlHc//9KJTxfLenwZXN/WfgxzGnqXxerDNX6x4+tLY6CCwu xudGH4IY2AaCdam2tiw8RayLFmnD9rrEVsybvCx01ECiipB1K+kxowCm0pPOVs8Tvamu GF9g== X-Received: by 10.194.81.169 with SMTP id b9mr9905645wjy.3.1442081464990; Sat, 12 Sep 2015 11:11:04 -0700 (PDT) Received: from tipsey.3.home (188.31.129.159.threembb.co.uk. [188.31.129.159]) by smtp.gmail.com with ESMTPSA id c3sm6628188wja.3.2015.09.12.11.11.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 12 Sep 2015 11:11:04 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 02/11] staging: vt6655: remove get_chip_name and info message. Date: Sat, 12 Sep 2015 19:10:29 +0100 Message-Id: <1442081438-3485-2-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1442081438-3485-1-git-send-email-tvboxspy@gmail.com> References: <1442081438-3485-1-git-send-email-tvboxspy@gmail.com> 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.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, 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 This prints "VIA Networking Solomon-A/B/G Wireless LAN Adapter" which has already printed once in vt6655_probe. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/device_main.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 2584d17..99191d9 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -168,16 +168,6 @@ static void device_free_rings(struct vnt_private *pDevice); /*--------------------- Export Functions --------------------------*/ -static char *get_chip_name(int chip_id) -{ - int i; - - for (i = 0; chip_info_table[i].name != NULL; i++) - if (chip_info_table[i].chip_id == chip_id) - break; - return chip_info_table[i].name; -} - static void vt6655_remove(struct pci_dev *pcid) { struct vnt_private *pDevice = pci_get_drvdata(pcid); @@ -447,8 +437,6 @@ static void device_init_registers(struct vnt_private *pDevice) static void device_print_info(struct vnt_private *pDevice) { - dev_info(&pDevice->pcid->dev, "%s\n", get_chip_name(pDevice->chip_id)); - dev_info(&pDevice->pcid->dev, "MAC=%pM IO=0x%lx Mem=0x%lx IRQ=%d\n", pDevice->abyCurrentNetAddr, (unsigned long)pDevice->ioaddr, (unsigned long)pDevice->PortOffset, pDevice->pcid->irq);