summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-02-16 16:28:23 +0100
committerTejun Heo <tj@kernel.org>2018-02-18 05:16:35 -0800
commit27c4203a3d48cf161fbd86f2ee48f4eb286b73db (patch)
tree96912b2928f7c03a4cc1f6187041bb2565f51cc1 /drivers
parentdcf3c1c1e8c7dcb4e129ad370b2aee6b8a7dd4cf (diff)
downloadlinux-27c4203a3d48cf161fbd86f2ee48f4eb286b73db.tar.bz2
pata_arasan_cf: Delete an unnecessary variable initialisation in arasan_cf_probe()
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/pata_arasan_cf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c
index be5fbcedecbf..ebecab8c3f36 100644
--- 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)