Home
last modified time | relevance | path

Searched hist:d1892e4ec96aad4b733dfab3ed989718f04f03e9 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Drtnetlink.cdiff d1892e4ec96aad4b733dfab3ed989718f04f03e9 Mon Feb 20 09:32:06 CST 2017 Tobias Klauser <tklauser@distanz.ch> 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: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>