projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d2d433
)
powerpc/axonram: Drop unnecessary variable initialisation
author
Markus Elfring
<elfring@users.sourceforge.net>
Tue, 5 Sep 2017 16:47:02 +0000
(18:47 +0200)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Sun, 22 Oct 2017 10:08:31 +0000
(12:08 +0200)
The local variable "rc" will eventually be set only to an error code.
Thus omit the explicit initialisation at the beginning.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/axonram.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/sysdev/axonram.c
b/arch/powerpc/sysdev/axonram.c
index c60e84e4558d995bedddce41ee20340dbc737a78..1b307c80b401083f50637daf1597f43ccabe70b9 100644
(file)
--- a/
arch/powerpc/sysdev/axonram.c
+++ b/
arch/powerpc/sysdev/axonram.c
@@
-184,7
+184,7
@@
static int axon_ram_probe(struct platform_device *device)
static int axon_ram_bank_id = -1;
struct axon_ram_bank *bank;
struct resource resource;
- int rc
= 0
;
+ int rc;
axon_ram_bank_id++;