Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9723025ybl; Thu, 26 Dec 2019 04:18:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyR0f8DLNb1/+3ygsGycWQXXAR2hQvpWKC7vuu4Y8S7TqOICiac46dadP0F0WHSjBA7bpAC X-Received: by 2002:a9d:ee2:: with SMTP id 89mr40061763otj.270.1577362697433; Thu, 26 Dec 2019 04:18:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577362697; cv=none; d=google.com; s=arc-20160816; b=Kni/p3KH7CiMLbWkQcLD4hoL/cKbhkY2EKFxh048jzr/DA89GrTs3zxbrMo8FQObTT MGZqMuhB/6+Q4C/YcisJhxwKtWHnTqgoTkQPUIo2OsSACfuNrxzt4iu3zpBe0nvwmkdp McXnKtbCT2hP8/DLivDyHG9yuwRorxss/+ocI9sOTML+prtByN3vGb8MR6rsmoXON7az popZdGwqUVk1PhtJrkabcQxhZ3AXBypuZTTd170x7jO4nCXFILMQ+ArsPbRIvun51mSY GdK0iRFfxuttSQQ7wmi4jeQWZ/V5cEaScoV3swayQJC9iF1iYEVdPa/tgpGKTulc8+hC d1hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=sJc0IbCDWojFlUtEUMezYas5E/6RYfpS698H2vZhHKo=; b=sCNjo+XwqGhS6m8I5hkb8og2/JvWM4TJRl8kvkmBENY+4+XHzFCDrI27kbRfl+AYsN haGpKIWgQU8hZHjiRFSbtYWGMuDgYc+Klbvv+EWm+BH5l/Sp0w1S3o//SrAoynDMlcbK +LQTxugRVUZQ6xMfttxhvUJmBW78TMO2/blg96LvHCzXhsuJGL7Sv1RseKdFOduOMitK GhxR4V9IEkWLhMLH7zqRwM7Srj+cLISS3ZR0/nR+/cW1al2fMfzeQRoGRyKDMqyYWrU+ DJGCINH8egIEA5z7pxNms95RybAcvfUC7gzCnfgxECSLIb2bpcqphwZ+wKnKwAWsbpuZ ZWMQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si14672138oia.277.2019.12.26.04.18.05; Thu, 26 Dec 2019 04:18:17 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726621AbfLZMR1 (ORCPT + 99 others); Thu, 26 Dec 2019 07:17:27 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:35340 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725954AbfLZMR1 (ORCPT ); Thu, 26 Dec 2019 07:17:27 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D1CA81CD06450C954626; Thu, 26 Dec 2019 20:17:19 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Thu, 26 Dec 2019 20:17:11 +0800 From: yu kuai To: , CC: , , , , Subject: [PATCH] fpga: dfl: fme: remove set but not used variable 'fme' Date: Thu, 26 Dec 2019 20:16:38 +0800 Message-ID: <20191226121638.10507-1-yukuai3@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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