mpls: small cleanup in inet/inet6_fib_lookup_dev()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Aug 2015 07:44:22 +0000 (10:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2015 04:56:55 +0000 (21:56 -0700)
commit5a9348b54d396c0b8bb877abcb107293034a87de
tree4e5da9caa8ad15e4765690ebce4be1bf1b8c0726
parent02b52428475672a241365910949deb6fe95d043c
mpls: small cleanup in inet/inet6_fib_lookup_dev()

We recently changed this code from returning NULL to returning ERR_PTR.
There are some left over NULL assignments which we can remove.  We can
preserve the error code from ip_route_output() instead of always
returning -ENODEV.  Also these functions use a mix of gotos and direct
returns.  There is no cleanup necessary so I changed the gotos to
direct returns.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Acked-by: Robert Shearman <rshearma@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c