diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2017-02-20 16:32:06 +0100 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-02-21 12:17:43 -0500 |
| commit | d1892e4ec96aad4b733dfab3ed989718f04f03e9 (patch) | |
| tree | 63be18c67fbc39d92d986d9b4dcaa9cbbb5cb687 /tools/perf/util/scripting-engines | |
| parent | virito-net: set queues after reset during xdp_set (diff) | |
| download | linux-d1892e4ec96aad4b733dfab3ed989718f04f03e9.tar.gz linux-d1892e4ec96aad4b733dfab3ed989718f04f03e9.zip | |
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>
Diffstat (limited to 'tools/perf/util/scripting-engines')
0 files changed, 0 insertions, 0 deletions
