diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-07-10 05:45:45 +0300 |
---|---|---|
committer | Damien Le Moal <dlemoal@kernel.org> | 2023-08-02 11:37:06 +0300 |
commit | 7763320fb96629022c014eb7a8ae72ef82bbe2b8 (patch) | |
tree | f0af762fe07cc398540dfba9a88b678c9ad83833 /drivers/ata/sata_rcar.c | |
parent | 827f6eaf39a152f562a41d828096723eaea7ec68 (diff) | |
download | linux-7763320fb96629022c014eb7a8ae72ef82bbe2b8.tar.xz |
ata: sata_rcar: Remove unnecessary return value check
As commit ce753ad1549c ("platform: finally disallow IRQ0 in
platform_get_irq() and its ilk") says, there is no need to
check if the platform_get_irq return value is 0. Let's remove it.
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>
Diffstat (limited to 'drivers/ata/sata_rcar.c')
-rw-r--r-- | drivers/ata/sata_rcar.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index 9ac39bfac64b..97f01e4e8054 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c @@ -867,8 +867,6 @@ static int sata_rcar_probe(struct platform_device *pdev) irq = platform_get_irq(pdev, 0); if (irq < 0) return irq; - if (!irq) - return -EINVAL; priv = devm_kzalloc(dev, sizeof(struct sata_rcar_priv), GFP_KERNEL); if (!priv) |