platform/mellanox: mlxbf-tmfifo: Fix a warning message
authorLiming Sun <limings@nvidia.com>
Thu, 12 Oct 2023 23:02:35 +0000 (19:02 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2023 13:11:01 +0000 (14:11 +0100)
commit8e4a77ba25ec7dc24c008d78c25ef6e766d0bab4
treebb1dc2831b30d1e76d8501b432999fd7eb483384
parent0f2840dabfea81b4770f0327dfb2705fedba85cf
platform/mellanox: mlxbf-tmfifo: Fix a warning message

[ Upstream commit 99c09c985e5973c8f0ad976ebae069548dd86f12 ]

This commit fixes the smatch static checker warning in function
mlxbf_tmfifo_rxtx_word() which complains data not initialized at
line 634 when IS_VRING_DROP() is TRUE.

Signed-off-by: Liming Sun <limings@nvidia.com>
Link: https://lore.kernel.org/r/20231012230235.219861-1-limings@nvidia.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/mellanox/mlxbf-tmfifo.c