]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_buffers: silence uninitialized warning
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Oct 2021 07:33:47 +0000 (10:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Oct 2021 14:23:02 +0000 (15:23 +0100)
commitf794dc90ee51088051038b73f49ef41ffa8b9d72
tree814a90ea511d93e4212a590fc4628535da3edb30
parentcd90d7b37e99f64fced2638c5b741c3043f7a4cd
mlxsw: spectrum_buffers: silence uninitialized warning

Static checkers and runtime checkers such as KMSan will complain that
we do not initialize the last 6 bytes of "cb_priv".  The caller only
uses the first two bytes so it doesn't cause a runtime issue.  Still
worth fixing though.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c