Skip to content
Commit d1892e4e authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller
Browse files

rtnl: simplify error return path in rtnl_create_link()



There is only one possible error path which reaches the err label, so
return ERR_PTR(-ENOMEM) directly if alloc_netdev_mqs() fails. This also
allows to omit the err variable.

Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 017b29c3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment