ata: sata_rcar: drop useless initializer
authorYangtao Li <frank.li@vivo.com>
Mon, 10 Jul 2023 02:45:44 +0000 (10:45 +0800)
committerDamien Le Moal <dlemoal@kernel.org>
Wed, 2 Aug 2023 08:37:06 +0000 (17:37 +0900)
There is no need to initialize the variable ret.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/sata_rcar.c

index d4e40cf4c371eba1c0192514422dfa3c99bc499a..9ac39bfac64bfa7aeb14b37316a4027e8b8ca998 100644 (file)
@@ -862,8 +862,7 @@ static int sata_rcar_probe(struct platform_device *pdev)
        struct ata_host *host;
        struct sata_rcar_priv *priv;
        struct resource *mem;
-       int irq;
-       int ret = 0;
+       int irq, ret;
 
        irq = platform_get_irq(pdev, 0);
        if (irq < 0)