diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-02-16 16:28:23 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-02-18 14:16:35 +0100 |
commit | 27c4203a3d48cf161fbd86f2ee48f4eb286b73db (patch) | |
tree | 96912b2928f7c03a4cc1f6187041bb2565f51cc1 | |
parent | pata_arasan_cf: Delete an error message for a failed memory allocation in ara... (diff) | |
download | linux-27c4203a3d48cf161fbd86f2ee48f4eb286b73db.tar.xz linux-27c4203a3d48cf161fbd86f2ee48f4eb286b73db.zip |
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>
-rw-r--r-- | drivers/ata/pata_arasan_cf.c | 2 |
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) |