diff options
| author | Eli Cohen <eli@mellanox.com> | 2017-02-28 16:52:21 -0600 |
|---|---|---|
| committer | Saeed Mahameed <saeedm@mellanox.com> | 2017-04-30 16:03:21 +0300 |
| commit | 0a0ab1d2cc5d5e68191488235074b5b30d793bb7 (patch) | |
| tree | 66ca6ddc708ff268bafa2468bf1f043a072b7dde /lib/mpi/mpiutil.c | |
| 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>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
