]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/sun3_82586: Fix return value of sun3_82586_probe()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 1 Sep 2021 12:17:35 +0000 (14:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Sep 2021 10:29:02 +0000 (11:29 +0100)
drivers/net/ethernet/i825xx/sun3_82586.c: In function ‘sun3_82586_probe’:
drivers/net/ethernet/i825xx/sun3_82586.c:317:9: warning: returning ‘struct net_device *’ from a function with return type ‘int’ makes integer from pointer without a cast [-Wint-conversion]
  317 |  return dev;
      |         ^~~

The return type of sun3_82586_probe() was changed, but one return value
was forgotten to be updated.

Fixes: e179d78ee11a70e2 ("m68k: remove legacy probing")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/i825xx/sun3_82586.c

index 893e0ddcb611230aa6755ab0c67a55b2f922487d..0696f723228a17790dbb2304c1d77952c9a856eb 100644 (file)
@@ -314,7 +314,7 @@ static int __init sun3_82586_probe(void)
        err = register_netdev(dev);
        if (err)
                goto out2;
-       return dev;
+       return 0;
 
 out2:
        release_region(ioaddr, SUN3_82586_TOTAL_SIZE);