]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit66abf5fb4cf713c6fdfccfbbabdcdf834f8bb9e2
tree6405c79b6987fd389f59ce13e873d429a0faac0a
parent205b95fe658ddba25236c60da777f67b4eec3fd3
net/sun3_82586: Fix return value of sun3_82586_probe()

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