projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67dca5e
)
spi: kill useless initializer in spi_register_controller()
author
Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com>
Fri, 5 Apr 2019 15:48:50 +0000
(18:48 +0300)
committer
Mark Brown
<broonie@kernel.org>
Mon, 8 Apr 2019 07:05:40 +0000
(14:05 +0700)
The 'status' local variable is initialized but this value is never used,
thus kill that initializer.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi.c
b/drivers/spi/spi.c
index
a83fcdd
..
fd1372f
100644
(file)
--- a/
drivers/spi/spi.c
+++ b/
drivers/spi/spi.c
@@
-2267,7
+2267,7
@@
int spi_register_controller(struct spi_controller *ctlr)
{
struct device *dev = ctlr->dev.parent;
struct boardinfo *bi;
- int status
= -ENODEV
;
+ int status;
int id, first_dynamic;
if (!dev)