Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13689352ybl; Sun, 29 Dec 2019 18:12:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxK3ykTKgEOascym7BUHm4jO64xxpoydv52+CnExWiOIgDGBvhAGUqql0K8thiQr505FA4F X-Received: by 2002:a9d:3b5:: with SMTP id f50mr69538876otf.354.1577671957380; Sun, 29 Dec 2019 18:12:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577671957; cv=none; d=google.com; s=arc-20160816; b=guAAPOeXZcnm0HV6X7CBiCCRoqnZfOZCDW5wgyHeuM3zb8hdDdyBt8xaWeJk6bYCjA K3mHv2AeoEbCJhLhGJasutb0tpnCxa7DkmgSbukWQjjc/TNsV0u2CLrOgTOwK0lCzPuL pHynRNhWaYWDW2JXsjGJvGdNHjATc+Oh1bHo3HwWJcPz4U17m8xTZT8mTyStyL6tSCLq KmyYoetkI21MV7sNHV7CcV6Xd46cQQnnAFwRlvFuB2QHRcVs4pwWw2KxLY9uwk2q5nzD WzA3T6w1z/rXdi2ednFQWk5YcIc/9NdfgS6ShngF/1xRpvxqn4Lv5EAAOAzTlPrPeHKz Kwzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=3sNC5u3ru3b0Y+7HiyD/wGKd1jc/FczOA2OwW2DXx0w=; b=rrgHbypD3RP3FFbnP1zGRIAs94NL46lhjcg8nyfJu4ynrZqzZ9MpYlG/lVwJJC9buy q36MyiMeJQkDPmoAAQ/P1iR1LYQbJZTZZsEqwrei6ZYs8H2oLyk/3fEY05Jf7xcy7mQt je2yATqmAjHASPF2O556c/pmXgMcTCxGiOx03a7UdfYSWDG3v0jh9MxX5NEgcWUJyK/N jZarlAe77FUpbrVecbgGG/VqtH3msGJ0C5RaXKY+cAc329OmKmk0ZCctTlmSQhXceVAr dzn1VjA/gnnqegI2LtV4i0G13JuDwDou37ItBvLQ6VePa6aJKfTg0578ausrYo53t2kk IB7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u84si14628954oib.34.2019.12.29.18.12.25; Sun, 29 Dec 2019 18:12:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726714AbfL3CLt (ORCPT + 99 others); Sun, 29 Dec 2019 21:11:49 -0500 Received: from mga06.intel.com ([134.134.136.31]:21642 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726343AbfL3CLs (ORCPT ); Sun, 29 Dec 2019 21:11:48 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Dec 2019 18:11:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,373,1571727600"; d="scan'208";a="213198292" Received: from hao-dev.bj.intel.com (HELO localhost) ([10.238.157.65]) by orsmga008.jf.intel.com with ESMTP; 29 Dec 2019 18:11:46 -0800 Date: Mon, 30 Dec 2019 09:51:40 +0800 From: Wu Hao To: Moritz Fischer Cc: yu kuai , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawe.com, zhengbin13@huawei.com Subject: Re: [PATCH] fpga: dfl: fme: remove set but not used variable 'fme' Message-ID: <20191230015140.GA6839@hao-dev> References: <20191226121638.10507-1-yukuai3@huawei.com> <20191227225726.GA1643@archbook> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191227225726.GA1643@archbook> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 27, 2019 at 02:57:26PM -0800, Moritz Fischer wrote: > On Thu, Dec 26, 2019 at 08:16:38PM +0800, yu kuai wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > > > drivers/fpga/dfl-fme-main.c: In function ‘fme_dev_destroy’: > > drivers/fpga/dfl-fme-main.c:678:18: warning: variable ‘fme’ set but not > > used [-Wunused-but-set-variable] > > > > It is never used and so can be removed. > > > > Signed-off-by: yu kuai > > --- > > drivers/fpga/dfl-fme-main.c | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/drivers/fpga/dfl-fme-main.c b/drivers/fpga/dfl-fme-main.c > > index 7c930e6b314d..1d4690c99268 100644 > > --- a/drivers/fpga/dfl-fme-main.c > > +++ b/drivers/fpga/dfl-fme-main.c > > @@ -675,10 +675,8 @@ static int fme_dev_init(struct platform_device *pdev) > > static void fme_dev_destroy(struct platform_device *pdev) > > { > > struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); > > - struct dfl_fme *fme; > > > > mutex_lock(&pdata->lock); > > - fme = dfl_fpga_pdata_get_private(pdata); > > dfl_fpga_pdata_set_private(pdata, NULL); > > mutex_unlock(&pdata->lock); > > } > > -- > > 2.17.2 > > > Acked-by: Moritz Fischer Acked-by: Wu Hao Thanks Hao > > Thanks, > Moritz