From patchwork Tue Jan 13 18:28:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5623361 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 5E140C058D for ; Tue, 13 Jan 2015 18:25:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 330C820377 for ; Tue, 13 Jan 2015 18:25:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6151C20374 for ; Tue, 13 Jan 2015 18:25:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753422AbbAMSZ3 (ORCPT ); Tue, 13 Jan 2015 13:25:29 -0500 Received: from mail-wg0-f46.google.com ([74.125.82.46]:53528 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753106AbbAMSZZ (ORCPT ); Tue, 13 Jan 2015 13:25:25 -0500 Received: by mail-wg0-f46.google.com with SMTP id x13so4594596wgg.5 for ; Tue, 13 Jan 2015 10:25:24 -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=CpMXL2MGwxnmGc8B/XuLA4dZUVyLzEGqrB/jGrUfUYU=; b=Xwgh+6oKL61QRojiMzMnUVoPRN+RXTa8nZ/HIjYrHRKWJOFy0TXs/YexFSwqbyfUYC NRklucWjDqBSIKhLf0iyCe3JO08kLBBLrQ+IBozFlmjJCakge5AduQHK+jUf8/gVj/+N 77rDLpLCcOehdQSiH4h1DuyjAvEdw40BIwma1Y6wU82Rt7aK8wobGI8rq/z+/o/FcFOI /ailAW/nwAfJrU9XBgkFyeZBPXqq1HPdv4jaPhB5vLAZraxJNbrefdx1iHS6W71wVWS2 MKH04nSs9fudkJ9Gl8BCPigDuokth8UruGakxicnkcTLhSMDn5SjPa4Q5MQgA8XelzYC OZvA== X-Gm-Message-State: ALoCoQn1+rqKlPJRvscVQKKL31VwLZL1TK+BXnz8ubhSKp4wd1w/4WH6do72OHhrfuyWE7O5/1s3 X-Received: by 10.180.20.50 with SMTP id k18mr1141255wie.31.1421173524396; Tue, 13 Jan 2015 10:25:24 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id ez1sm26712754wjd.31.2015.01.13.10.25.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jan 2015 10:25:23 -0800 (PST) From: Rickard Strandqvist To: Lauro Ramos Venancio , Aloisio Almeida Jr Cc: Rickard Strandqvist , Samuel Ortiz , "David S. Miller" , Axel Lin , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] NFC: hci: llc: Remove unused function Date: Tue, 13 Jan 2015 19:28:31 +0100 Message-Id: <1421173711-4320-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 nfc_llc_unregister() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- net/nfc/hci/llc.c | 13 ------------- net/nfc/hci/llc.h | 1 - 2 files changed, 14 deletions(-) diff --git a/net/nfc/hci/llc.c b/net/nfc/hci/llc.c index 1b90c05..91b71e8 100644 --- a/net/nfc/hci/llc.c +++ b/net/nfc/hci/llc.c @@ -85,19 +85,6 @@ static struct nfc_llc_engine *nfc_llc_name_to_engine(const char *name) return NULL; } -void nfc_llc_unregister(const char *name) -{ - struct nfc_llc_engine *llc_engine; - - llc_engine = nfc_llc_name_to_engine(name); - if (llc_engine == NULL) - return; - - list_del(&llc_engine->entry); - kfree(llc_engine->name); - kfree(llc_engine); -} - struct nfc_llc *nfc_llc_allocate(const char *name, struct nfc_hci_dev *hdev, xmit_to_drv_t xmit_to_drv, rcv_to_hci_t rcv_to_hci, int tx_headroom, diff --git a/net/nfc/hci/llc.h b/net/nfc/hci/llc.h index 5dad4c5..f8ac1dc 100644 --- a/net/nfc/hci/llc.h +++ b/net/nfc/hci/llc.h @@ -51,7 +51,6 @@ struct nfc_llc { void *nfc_llc_get_data(struct nfc_llc *llc); int nfc_llc_register(const char *name, struct nfc_llc_ops *ops); -void nfc_llc_unregister(const char *name); int nfc_llc_nop_register(void);