瀏覽代碼

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>
Markus Elfring 7 年之前
父節點
當前提交
27c4203a3d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/ata/pata_arasan_cf.c

+ 1 - 1
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)