commit | 0a0ab1d2cc5d5e68191488235074b5b30d793bb7 | [log] [tgz] |
---|---|---|
author | Eli Cohen <eli@mellanox.com> | Tue Feb 28 16:52:21 2017 -0600 |
committer | Saeed Mahameed <saeedm@mellanox.com> | Sun Apr 30 16:03:21 2017 +0300 |
tree | 66ca6ddc708ff268bafa2468bf1f043a072b7dde | |
parent | 0f6e4cf67411631be7f010fdb5c2d82c0c8705c0 [diff] |
net/mlx5: E-Switch, Avoid redundant memory allocation struct esw_mc_addr is a small struct that can be part of struct mlx5_eswitch. Define it as a field and not as a pointer and save the kzalloc call and then error flow handling. Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>