projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcf3c1c
)
pata_arasan_cf: Delete an unnecessary variable initialisation in arasan_cf_probe()
author
Markus Elfring
<elfring@users.sourceforge.net>
Fri, 16 Feb 2018 15:28:23 +0000
(16:28 +0100)
committer
Tejun Heo
<tj@kernel.org>
Sun, 18 Feb 2018 13:16:35 +0000
(
05:16
-0800)
The local variable "ret" will eventually be set to an appropriate value
a bit later. Thus omit the explicit initialisation at the beginning.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/pata_arasan_cf.c
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_arasan_cf.c
b/drivers/ata/pata_arasan_cf.c
index be5fbcedecbf578d65d5ae0fc20847ad9fac5d1f..ebecab8c3f36c947f94aa512ec59717ed534228f 100644
(file)
--- a/
drivers/ata/pata_arasan_cf.c
+++ b/
drivers/ata/pata_arasan_cf.c
@@
-796,7
+796,7
@@
static int arasan_cf_probe(struct platform_device *pdev)
struct resource *res;
u32 quirk;
irq_handler_t irq_handler = NULL;
- int ret
= 0
;
+ int ret;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res)