projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f187e7
)
ata: sata_rcar: drop useless initializer
author
Yangtao Li
<frank.li@vivo.com>
Mon, 10 Jul 2023 02:45:44 +0000
(10:45 +0800)
committer
Damien 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/sata_rcar.c
b/drivers/ata/sata_rcar.c
index d4e40cf4c371eba1c0192514422dfa3c99bc499a..9ac39bfac64bfa7aeb14b37316a4027e8b8ca998 100644
(file)
--- a/
drivers/ata/sata_rcar.c
+++ b/
drivers/ata/sata_rcar.c
@@
-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)