Searched hist:"420 d031822737ef570df6834c0eae26f33988f20" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/core/ |
H A D | rtnetlink.c | diff 420d031822737ef570df6834c0eae26f33988f20 Wed Nov 28 00:32:30 CST 2018 Jakub Kicinski <jakub.kicinski@netronome.com> rtnetlink: remove a level of indentation in rtnl_newlink()
rtnl_newlink() used to create VLAs based on link kind. Since commit ccf8dbcd062a ("rtnetlink: Remove VLA usage") statically sized array is created on the stack, so there is no more use for a separate code block that used to be the VLA's live range.
While at it christmas tree the variables. Note that there is a goto-based retry so to be on the safe side the variables can no longer be initialized in place. It doesn't seem to matter, logically, but why make the code harder to read..
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|