Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp11477813ybl; Fri, 27 Dec 2019 14:58:58 -0800 (PST) X-Google-Smtp-Source: APXvYqyjZl8Fni9tE5VwhN8sdvb1pZN8sbM82wFODMglP2fc6OVT6OrUFd3x3JtYD2+tgel5hudH X-Received: by 2002:a05:6830:1292:: with SMTP id z18mr24216027otp.148.1577487538179; Fri, 27 Dec 2019 14:58:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577487538; cv=none; d=google.com; s=arc-20160816; b=Gi553s+Cfdh8bk8UGHAXTCp3D5HEgVMxSSXPK6V4TO+d6A2s4yrRKGWKD/HBXC8y2K pRAqAFHCscAt8QOJbn3+wyREQXEd/hD+otR5FxQtedQIfco9K1vKBpHwIi12XoUBeYYB RoTDcVj99ahim7vPYsVkDI6c+JFcCM65bafKAVNeTOHklAspVKt+QwgMCpmP+Aja/GtH A3zdYTc5vsslMgloRw7tUenUPr/pcXgu1LLSH1bC3Bec59QXUyemecLabRdejXRTrBoz Ou2g3q6tVK6v3lSzwgnXNRYJCoTGA35JG97mXTu13xh3BBilatDAsCna36T/l9W4MS4H Sm5g== 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=E+kLuWzj80EvnFF/oib9ssslkvZ228O67/W2bXxQ/pc=; b=Tre524fHMvGAN3f3IoHZt8YhJ6ueTz9fPnGRvHoSZl9/yh4KZ0EdUAdNFZiBXJseaU K4SHGQjSB+KUUYGTBDAPl462dNW9XGS9i3NTYXyDAkq4uw8WNbUGEajnsLYzbToVID0P 2yC9LtsvWadiJAJMiQqy7ssel4dh7rpkSQvO3/ZDoIw6Yl9V3MU4R/MlTfnaucIZCDPB GPFj6nMcYGXVkOp6n0UYSPMW9Gj3o30q8/OBY9jgUXychfBjPk5Fp7TBK1VILlMGHshS rGI7k6jiCde7LXmrHORIJUaMIp+2d1Fy/VRTcDBCvVUzd/q2rQP45XKr8mz5CqhJXTNJ X6dw== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l25si13213060otn.69.2019.12.27.14.58.46; Fri, 27 Dec 2019 14:58:58 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726371AbfL0W5a (ORCPT + 99 others); Fri, 27 Dec 2019 17:57:30 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33240 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725306AbfL0W53 (ORCPT ); Fri, 27 Dec 2019 17:57:29 -0500 Received: by mail-pg1-f194.google.com with SMTP id 6so15099822pgk.0; Fri, 27 Dec 2019 14:57:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=E+kLuWzj80EvnFF/oib9ssslkvZ228O67/W2bXxQ/pc=; b=alIASRwC9MAeNWDMqXGCUuildoUx3gjtn4xv1mPE9069xvZVCb7jYDc2Mzk7YX+7ae 57oXsu8YuVgdU+G9uxwuzcjcGR3q9Nt/gk4ftWUNcajRjz43dDylB0YMhlCwsK4eiU3E vWHPLHKma+ofpR9IHrtgk8GPTAFPavKftdZH8RlYGBdLYPaD0GgHXS/K/nu6hc4/v9ps ywUgbZobGZJwPCti6Dbw1UkrPGRrAsvqeZnqUBRGVPQ9VxL8nvkNftJQT+IxujaH8seB OMHu8seoFCtAevz9ss6G7EFHvdscWSDt6hH89IhYo6vkmNcUhBPFkepVMrOY3AZ2Q9ow ni3Q== X-Gm-Message-State: APjAAAX0/paoeAVqSL/d/eOv9TH5G3Q9odZg9W+ksJHSw8XkoEmBMZnS M/dbVHdg6lcvBvrKR0K1gS4= X-Received: by 2002:a63:cc4f:: with SMTP id q15mr57958004pgi.159.1577487449227; Fri, 27 Dec 2019 14:57:29 -0800 (PST) Received: from localhost ([2601:647:5b00:710:1443:739:e13:41a5]) by smtp.gmail.com with ESMTPSA id gc1sm15437871pjb.20.2019.12.27.14.57.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2019 14:57:28 -0800 (PST) Date: Fri, 27 Dec 2019 14:57:26 -0800 From: Moritz Fischer To: yu kuai Cc: hao.wu@intel.com, mdf@kernel.org, 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: <20191227225726.GA1643@archbook> References: <20191226121638.10507-1-yukuai3@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191226121638.10507-1-yukuai3@huawei.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Thanks, Moritz