OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbb336f
)
spi: spi-amd: fix warning
author
Sanjay R Mehta
<sanju.mehta@amd.com>
Tue, 28 Apr 2020 04:56:41 +0000
(23:56 -0500)
committer
Mark Brown
<broonie@kernel.org>
Tue, 28 Apr 2020 16:52:41 +0000
(17:52 +0100)
remove unused variable "opcode"
Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link:
https://lore.kernel.org/r/1588049801-37995-1-git-send-email-sanju.mehta@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-amd.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-amd.c
b/drivers/spi/spi-amd.c
index
0d9debe
..
c5a16dd
100644
(file)
--- 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;