From patchwork Tue Jun 12 14:14:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 10460429 X-Patchwork-Delegate: sameo@linux.intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7153C60348 for ; Tue, 12 Jun 2018 14:14:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69C8D285EC for ; Tue, 12 Jun 2018 14:14:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C9AB286B9; Tue, 12 Jun 2018 14:14:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01DE7285EC for ; Tue, 12 Jun 2018 14:14:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933762AbeFLOOR (ORCPT ); Tue, 12 Jun 2018 10:14:17 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:41967 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933295AbeFLOOQ (ORCPT ); Tue, 12 Jun 2018 10:14:16 -0400 Received: by mail-pf0-f193.google.com with SMTP id a11-v6so12185552pff.8 for ; Tue, 12 Jun 2018 07:14:16 -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:author; bh=BG+igN4b9SsLyJF+F3z4YuTuZ2A6ut0cwxE4omYMojY=; b=NzVEvkZUcvkc41XEmjawR6I1mL3rlqMJmHtkb8958Pzs7VvO5PVUa6XlnrC8b6UFei Cala+AyzvF4heh8+VcNf6nWPoij664NXQ8jUEf9LpuEii0QNQfftBOJn9GrWu4RhoIRF czao9IL2uxowKolSvN5T/axtXr3zZ0yoF7spA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:author; bh=BG+igN4b9SsLyJF+F3z4YuTuZ2A6ut0cwxE4omYMojY=; b=bNvAXgSzH8OK9WpUYgkXLpP+Vz7cgj7hr/2XKIywv6RN7FX4OMmCGyjti5r5wBeDdt 57SW5E1THfzjpWaDn1AnhtZvdTrMMRkXJb3dv9ZgSKeFjfxkypQoEf3vbyCZiBv4UHgO hC6lqxu7gZywZjGAtDAI90b1s3MYZTT5DUqopufZucxedZVioCvyW+H9k75fxnULJETd v3Xb+YtHWom+PuYlW+Q9SLo4bLQkPqE5HOTgqdUMCAY2H/iBOkBXi4C1PFcn42tPfK75 YrahpO7U5yWF0EqU7cKEOjVgdYtbZRkK/1eRHbRqfvAABo5oaZMkdlH0d7aOr4p8Kumm seSQ== X-Gm-Message-State: APt69E1PTx72RRNjjQ3aZIc83mKXTrLTlO2Qi4POb9NTmsduWrlLGQpW dnKJnTy/goysxAZogd6IMXu7l8R8Se4= X-Google-Smtp-Source: ADUXVKJVCPY1XK8h6o7WHZqJre/RTu4fFCYAxdjOZd8GLcmkopyhgrFGkigRR9FZMrXsnFLVohac7g== X-Received: by 2002:a63:8c4f:: with SMTP id q15-v6mr510880pgn.236.1528812855338; Tue, 12 Jun 2018 07:14:15 -0700 (PDT) Received: from localhost.localdomain ([106.51.19.6]) by smtp.gmail.com with ESMTPSA id r79-v6sm467076pfe.115.2018.06.12.07.14.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jun 2018 07:14:13 -0700 (PDT) From: Amit Pundir To: linux-wireless@vger.kernel.org Cc: Samuel Ortiz , Andy Shevchenko Subject: [PATCH] NFC: fdp: Fix unused variable warnings Date: Tue, 12 Jun 2018 19:44:10 +0530 Message-Id: <1528812850-16158-1-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 2.7.4 Author: Amit Pundir Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix unused variable warnings reported on next-20180612. Fixes: 7579d009c4a1 ("NFC: fdp: Remove __func__ from dev_dbg()") Signed-off-by: Amit Pundir --- drivers/nfc/fdp/fdp.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c index 36d1091d288a..6b5aba8c8937 100644 --- a/drivers/nfc/fdp/fdp.c +++ b/drivers/nfc/fdp/fdp.c @@ -247,7 +247,6 @@ static int fdp_nci_open(struct nci_dev *ndev) { int r; struct fdp_nci_info *info = nci_get_drvdata(ndev); - struct device *dev = &info->phy->i2c_dev->dev; r = info->phy_ops->enable(info->phy); @@ -256,16 +255,12 @@ static int fdp_nci_open(struct nci_dev *ndev) static int fdp_nci_close(struct nci_dev *ndev) { - struct fdp_nci_info *info = nci_get_drvdata(ndev); - struct device *dev = &info->phy->i2c_dev->dev; - return 0; } static int fdp_nci_send(struct nci_dev *ndev, struct sk_buff *skb) { struct fdp_nci_info *info = nci_get_drvdata(ndev); - struct device *dev = &info->phy->i2c_dev->dev; if (atomic_dec_and_test(&info->data_pkt_counter)) info->data_pkt_counter_cb(ndev); @@ -275,9 +270,6 @@ static int fdp_nci_send(struct nci_dev *ndev, struct sk_buff *skb) int fdp_nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb) { - struct fdp_nci_info *info = nci_get_drvdata(ndev); - struct device *dev = &info->phy->i2c_dev->dev; - return nci_recv_frame(ndev, skb); } EXPORT_SYMBOL(fdp_nci_recv_frame); @@ -599,7 +591,6 @@ static int fdp_nci_core_reset_ntf_packet(struct nci_dev *ndev, struct sk_buff *skb) { struct fdp_nci_info *info = nci_get_drvdata(ndev); - struct device *dev = &info->phy->i2c_dev->dev; info->setup_reset_ntf = 1; wake_up(&info->setup_wq); @@ -611,7 +602,6 @@ static int fdp_nci_prop_patch_ntf_packet(struct nci_dev *ndev, struct sk_buff *skb) { struct fdp_nci_info *info = nci_get_drvdata(ndev); - struct device *dev = &info->phy->i2c_dev->dev; info->setup_patch_ntf = 1; info->setup_patch_status = skb->data[0]; @@ -785,9 +775,6 @@ EXPORT_SYMBOL(fdp_nci_probe); void fdp_nci_remove(struct nci_dev *ndev) { - struct fdp_nci_info *info = nci_get_drvdata(ndev); - struct device *dev = &info->phy->i2c_dev->dev; - nci_unregister_device(ndev); nci_free_device(ndev); }