]> git.baikalelectronics.ru Git - kernel.git/commit
net: lantiq: Fix returned value in case of error in 'xrx200_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 13 Nov 2018 17:42:24 +0000 (18:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Nov 2018 03:46:49 +0000 (19:46 -0800)
commit4961ce4d7f43a5ad8b523916c43861e8ada74ddc
tree559f53c9b83141ae37eb32b6616176209317416e
parent24dd793c80155d8c0c43c9e57df1a922a62901cb
net: lantiq: Fix returned value in case of error in 'xrx200_probe()'

Return 'err' in the error handling path instead of 0.
Return explicitly 0 in the normal path, instead of 'err', which is known
to be 0 at this point.

Fixes: 2db54a9ba722 ("net: lantiq: Add Lantiq / Intel VRX200 Ethernet driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/lantiq_xrx200.c