]> git.baikalelectronics.ru Git - kernel.git/commit
fsl/fman: Remove some useless code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 6 Nov 2017 21:53:30 +0000 (22:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 04:53:33 +0000 (13:53 +0900)
commit71c0067d03a93e889135edea5c60ff187700f57c
tree54ab8bbac26c32ad4c7c972436bdecd020440c0e
parent153f32267410b46896632f7d1532d6751b815170
fsl/fman: Remove some useless code

There is no need to release explicitly some devm_ allocated resources.
If the 'mac_probe()' probe function fails, they will be released
automatically, as already done in the other error handling paths of
this function.

Also goto '_return_of_get_parent' as in the other error handling paths.
This is useless (priv->fixed_link is NULL at this point), but at least
it is consistent.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/mac.c