Message ID | 96042828-9707-8af9-664a-5c71818dd817@users.sourceforge.net (mailing list archive) |
---|---|
State | Accepted |
Commit | a7cd4586210c69c19aef26f4f83d3e492040de1c |
Headers | show |
Series | [v2] axonram: Delete an unnecessary variable initialisation in axon_ram_probe() | expand |
On Tue, 2017-09-05 at 17:11:31 UTC, SF Markus Elfring wrote: > From: Markus Elfring <elfring@users.sourceforge.net> > Date: Tue, 5 Sep 2017 18:47:02 +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> Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/a7cd4586210c69c19aef26f4f83d3e cheers
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++;