]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
mlxsw: spectrum_buffers: Use designated initializers for mlxsw_sp_pbs
authorJiri Pirko <jiri@mellanox.com>
Fri, 15 Apr 2016 13:09:37 +0000 (15:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2016 17:02:42 +0000 (13:02 -0400)
Suggested-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c

index f2e073af5dd258742482bc458d2cc7bd3412c2de..64166dd67e6feaf95f0312a713d20c7f5616ff34 100644 (file)
@@ -162,16 +162,8 @@ static int mlxsw_sp_sb_pm_occ_query(struct mlxsw_sp *mlxsw_sp, u8 local_port,
 }
 
 static const u16 mlxsw_sp_pbs[] = {
-       2 * MLXSW_SP_BYTES_TO_CELLS(ETH_FRAME_LEN),
-       0,
-       0,
-       0,
-       0,
-       0,
-       0,
-       0,
-       0, /* Unused */
-       2 * MLXSW_SP_BYTES_TO_CELLS(MLXSW_PORT_MAX_MTU),
+       [0] = 2 * MLXSW_SP_BYTES_TO_CELLS(ETH_FRAME_LEN),
+       [9] = 2 * MLXSW_SP_BYTES_TO_CELLS(MLXSW_PORT_MAX_MTU),
 };
 
 #define MLXSW_SP_PBS_LEN ARRAY_SIZE(mlxsw_sp_pbs)