From patchwork Tue Apr 28 21:37:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 214710 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D34E5C83000 for ; Tue, 28 Apr 2020 21:37:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B9B5420730 for ; Tue, 28 Apr 2020 21:37:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726282AbgD1VhT (ORCPT ); Tue, 28 Apr 2020 17:37:19 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:46569 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726274AbgD1VhS (ORCPT ); Tue, 28 Apr 2020 17:37:18 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1MPXMa-1jqB8k2Rve-00MfDB; Tue, 28 Apr 2020 23:37:12 +0200 From: Arnd Bergmann To: Sanjay R Mehta , Mark Brown Cc: Arnd Bergmann , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: spi-amd: remove unused variable Date: Tue, 28 Apr 2020 23:37:02 +0200 Message-Id: <20200428213711.3643464-1-arnd@arndb.de> X-Mailer: git-send-email 2.26.0 MI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sioo6Jx1Z3+rSY3+ag6+ep1go2u9F9C2vUBC dAtS+imgoRoNZqxSP+LmwkuxXO+Xnir/AZDQv1n3SA5spEiR/w= Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org This variable was defined in the original version of this file but never used, so remove it to avoid the warning: drivers/spi/spi-amd.c: In function 'amd_spi_fifo_xfer': drivers/spi/spi-amd.c:171:17: error: unused variable 'opcode' [-Werror=unused-variable] 171 | u8 cmd_opcode, opcode = 0; Fixes: bbb336f39efc ("spi: spi-amd: Add AMD SPI controller driver support") Signed-off-by: Arnd Bergmann --- drivers/spi/spi-amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-amd.c b/drivers/spi/spi-amd.c index 0d9debe1386e..c5a16dd44fa3 100644 --- a/drivers/spi/spi-amd.c +++ b/drivers/spi/spi-amd.c @@ -168,7 +168,7 @@ static inline int amd_spi_fifo_xfer(struct amd_spi *amd_spi, { struct spi_master *master = amd_spi->master; struct spi_transfer *xfer = NULL; - u8 cmd_opcode, opcode = 0; + u8 cmd_opcode; u8 *buf = NULL; u32 m_cmd = 0; u32 i = 0;