net: hisilicon: fix the return value handle and remove redundant netdev_err() for...
[linux-2.6-microblaze.git] / drivers / net / ethernet / hisilicon / hip04_eth.c
index 50c3f5d..ecf92a5 100644 (file)
@@ -960,8 +960,8 @@ static int hip04_mac_probe(struct platform_device *pdev)
        }
 
        irq = platform_get_irq(pdev, 0);
-       if (irq <= 0) {
-               ret = -EINVAL;
+       if (irq < 0) {
+               ret = irq;
                goto init_fail;
        }