On 11/27/18 11:32 PM, Jakub Kicinski wrote:
> 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 <[email protected]>
> ---
>  net/core/rtnetlink.c | 313 +++++++++++++++++++++----------------------
>  1 file changed, 154 insertions(+), 159 deletions(-)

Reviewed-by: David Ahern <[email protected]>

Reply via email to