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: 138357 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5411031lji; Tue, 12 Jun 2018 07:14:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKN+QRsXXXW3kGplLs1C8WJCAlInlRUyUrwzRf4EptZlORHeyOQ36fRYOQV1HJMHZHj/Ux/ X-Received: by 2002:a17:902:5a3:: with SMTP id f32-v6mr609029plf.109.1528812858973; Tue, 12 Jun 2018 07:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528812858; cv=none; d=google.com; s=arc-20160816; b=z9VddzWZRJr2JssyWbvn31nqzfjqLY6J7Ro41t0FXJdf1Hmo11r/Jyth4l/f8rL8+C fVrur3GKe/CjqxE2A8LjnVPKUE6D4PekC4EapSvYpr7qIszyDMfZY2zdDxzZve8/GET3 jl2LHBEQoojilU8GdWOGcP6uaKhenRzNAfm4kv9U6XkAw65anJpONz9+tC6jOme+uBEN H82qbHzsCXJ5fZwGdQCXwVpRj5nzA9e7cieLPPMqYHh8UqLHgJaZQNlBmMOxy6LMIJa7 jexGSYd//F3tIhPZRJAzj6sDE0vCJMgqJ3MiGytptplLgY0Nh/lx2igmu1jTTydayh9K rsnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:author:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=BG+igN4b9SsLyJF+F3z4YuTuZ2A6ut0cwxE4omYMojY=; b=d1ZSL/abvRvpjVGytKbzrOqy8wSubzys0ZbvHvagD6OKsEVxa5POodEsWiyUPtTMgx myrLOULPGaojEzWNrSKzUoatB0SaMKfpCW/p4+5jEENiKlCUbgc2rskKAWLswggQPo0I LgEwnDgWfsBygm38iKcHL6BrqvfK1CNJ4ljpW3Da/kv1262JBIoZ5zEmtXvHAFEiQ/V4 kxu2K08qDCxFw0wBO4AP5Rmr1PSvF5jcGgT/C+93EVN3OTSUCsfrUVRjLKv9lfcejhSH lmdyCwUHCvhF7VU+YHFr4faiAlzVIdAxaWdOKEAnmhJcWF/c0CC/fxDmcuup1El5yRif qbpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NzVEvkZU; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t5-v6si202685pgc.189.2018.06.12.07.14.18; Tue, 12 Jun 2018 07:14:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NzVEvkZU; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933762AbeFLOOR (ORCPT + 3 others); 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-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 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(-) -- 2.7.4 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); }