mlxsw: spectrum_qdisc: Don't use variable array in mlxsw_sp_tclass_congestion_enable
authorJiri Pirko <jiri@mellanox.com>
Wed, 10 Jan 2018 10:42:44 +0000 (11:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 20:58:23 +0000 (15:58 -0500)
commitdb84924c4fc3be1ef0c965d5ece5f6d785c77c5f
tree87607701e3b539f48040149794e7eb193eb41268
parent8e033a93b37f37aa9fca71a370a895155320af60
mlxsw: spectrum_qdisc: Don't use variable array in mlxsw_sp_tclass_congestion_enable

Resolve the sparse warning:
"sparse: Variable length array is used."
Use 2 arrays for 2 PRM register accesses.

Fixes: 96f17e0776c2 ("mlxsw: spectrum: Support RED qdisc offload")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Yuval Mintz <yuvalm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c