From: Sanjay R Mehta <sanju.mehta@amd.com>
To: sfr@canb.auug.org.au, broonie@kernel.org
Cc: Nehal-bakulchandra.Shah@amd.com, linux-spi@vger.kernel.org,
linux-kernel@vger.kernel.org,
Sanjay R Mehta <sanju.mehta@amd.com>
Subject: [PATCH] spi: spi-amd: fix warning
Date: Mon, 27 Apr 2020 23:56:41 -0500 [thread overview]
Message-ID: <1588049801-37995-1-git-send-email-sanju.mehta@amd.com> (raw)
remove unused variable "opcode"
Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
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 0d9debe..c5a16dd 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;
--
2.7.4
next reply other threads:[~2020-04-28 4:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-28 4:56 Sanjay R Mehta [this message]
2020-04-28 16:52 ` [PATCH] spi: spi-amd: fix warning Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1588049801-37995-1-git-send-email-sanju.mehta@amd.com \
--to=sanju.mehta@amd.com \
--cc=Nehal-bakulchandra.Shah@amd.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).