OpenCloudOS-Kernel/drivers/net/ethernet/i825xx
Miaoqian Lin 99218cbf81 lib82596: Fix IRQ check in sni_82596_probe
platform_get_irq() returns negative error number instead 0 on failure.
And the doc of platform_get_irq() provides a usage example:

    int irq = platform_get_irq(pdev, 0);
    if (irq < 0)
        return irq;

Fix the check of return value to catch errors correctly.

Fixes: 1159788592 ("i825xx: Move the Intel 82586/82593/82596 based drivers")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-01-14 11:24:03 +00:00
..
82596.c 82596: use eth_hw_addr_set() 2021-11-20 12:25:56 +00:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ether1.c drivers: net: ethernet: i825xx: Fix couple of spellings in the file ether1.c 2021-02-04 19:07:55 -08:00
ether1.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
lasi_82596.c lasi_82594: use eth_hw_addr_set() 2021-11-19 11:05:21 +00:00
lib82596.c lib82596: convert to dma_alloc_noncoherent 2020-09-25 06:20:45 +02:00
sni_82596.c lib82596: Fix IRQ check in sni_82596_probe 2022-01-14 11:24:03 +00:00
sun3_82586.c ethernet: replace netdev->dev_addr assignment loops 2021-10-14 09:22:25 -07:00
sun3_82586.h ethernet: Convert mac address uses of 6 to ETH_ALEN 2013-08-02 12:33:54 -07:00