Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp535975ybl; Wed, 21 Aug 2019 01:24:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQLBwYIVey00xoq8Dp1EuPzNeYe4y8w9J7OoBVJx1AQKGxSlennPrOf+TifyLCJA0ggBck X-Received: by 2002:a17:902:8484:: with SMTP id c4mr31721604plo.223.1566375841260; Wed, 21 Aug 2019 01:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566375841; cv=none; d=google.com; s=arc-20160816; b=jNcu59gDAzxT86cs2JMzUT7E9ExRf5Z6ON45zY/uZzHZT5E8/qmlaoqkHtmsxvjK6Z YIfvUv5isXnHMBVtOZwlS5bnwiLhyFvDZY1OOQWakHXg/f0iZnoE6JIv31k50TjGm5JI R+4GvbtdaBh5pd/fQ9HecPiV0Oq0Tq3r4u+KeKYWRSkEgpWDWZg6urnI2QciFRQeSpYQ tz7AeyC0dlMKEM9k+Mm6gU+m71j06mYT7wBM+gNwGMBg7990+JIxvOpCBCzC4v6wpWse m64vsPWj2vs76kNG+7Vf/2h5ExlTQTDrpxk7rSmEsPY370z61hOSeK0x76eRQjLW9LC4 6Qrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=cX/LpPneArd1vPlJdCRp6OBs/62hUQrijhl1+oM4S7s=; b=Ci+ItAYdryuIVvLlTreSogJhbMfZ8Cm7M3ZwVuW1gcC5sE6KxmLxH3+X4nHHZ503x6 eLP5kNv3Lh//PmBRXbns3LqDWSXsge4Oda/vtw/uVgxTmmCsMaC+uZ87UV19cC6pXt7+ rF8eWgUnH5Cxj8bvrGSO5UXelXfOgwMDdLwkj/iDodRRUHvgjSld1AKSWt+AA6kBQiMn oIFWLhQUWq65/Abvm9kwWG10i0W4HuX/rmsYVmVY+P/jZ+SFRHPgojJCilD9JtnfW9yR wRC99Ogz1paTNiMnJC45WBuwpcofpSU0v8a/YKRqDSBjCdOqn948LWWcDJrgA4i+GSi6 q3CQ== 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 g8si1793725pjv.24.2019.08.21.01.23.45; Wed, 21 Aug 2019 01:24:01 -0700 (PDT) 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 S1727291AbfHUINl (ORCPT + 99 others); Wed, 21 Aug 2019 04:13:41 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:43964 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726217AbfHUINl (ORCPT ); Wed, 21 Aug 2019 04:13:41 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id B0828844EB881BAF5AAA; Wed, 21 Aug 2019 16:13:39 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Wed, 21 Aug 2019 16:13:32 +0800 From: Jason Yan To: , , , CC: , Jason Yan Subject: [PATCH -next] moxtet: remove set but not used variable 'dummy' Date: Wed, 21 Aug 2019 16:34:22 +0800 Message-ID: <20190821083422.45334-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain 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/bus/moxtet.c: In function moxtet_remove: drivers/bus/moxtet.c:822:6: warning: variable dummy set but not used [-Wunused-but-set-variable] Signed-off-by: Jason Yan --- drivers/bus/moxtet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bus/moxtet.c b/drivers/bus/moxtet.c index 1ee4570e7e17..baccf7609357 100644 --- a/drivers/bus/moxtet.c +++ b/drivers/bus/moxtet.c @@ -819,7 +819,6 @@ static int moxtet_probe(struct spi_device *spi) static int moxtet_remove(struct spi_device *spi) { struct moxtet *moxtet = spi_get_drvdata(spi); - int dummy; free_irq(moxtet->dev_irq, moxtet); @@ -827,7 +826,7 @@ static int moxtet_remove(struct spi_device *spi) moxtet_unregister_debugfs(moxtet); - dummy = device_for_each_child(moxtet->dev, NULL, __unregister); + device_for_each_child(moxtet->dev, NULL, __unregister); mutex_destroy(&moxtet->lock); -- 2.17.2