Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1726889
| From | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2] axonram: Delete an unnecessary variable initialisation in axon_ram_probe() |
| Date | 2017-09-05 19:20 +0200 |
| Message-ID | <umpG2-5G8-19@gated-at.bofh.it> (permalink) |
| References | <uaKGe-7th-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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> --- v2: Three update steps were integrated for this software module on 2017-09-01. Thus improve another source code place. arch/powerpc/sysdev/axonram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- 2.14.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v2] axonram: Delete an unnecessary variable initialisation in axon_ram_probe() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-05 19:20 +0200
csiph-web