aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/axonram.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-09-05 18:47:02 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2017-10-22 12:08:31 +0200
commita7cd4586210c69c19aef26f4f83d3e492040de1c (patch)
tree33782a38c1d0ffc9883964b694a096af0229b0e4 /arch/powerpc/sysdev/axonram.c
parentpowerpc: dts: acadia: DT fix s/#interrupts-parent/#interrupt-parent/ (diff)
downloadlinux-dev-a7cd4586210c69c19aef26f4f83d3e492040de1c.tar.xz
linux-dev-a7cd4586210c69c19aef26f4f83d3e492040de1c.zip
powerpc/axonram: Drop unnecessary variable initialisation
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>
Diffstat (limited to 'arch/powerpc/sysdev/axonram.c')
-rw-r--r--arch/powerpc/sysdev/axonram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c
index c60e84e4558d..1b307c80b401 100644
--- 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++;