]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Initialize debug string array
authorTim Gardner <tim.gardner@canonical.com>
Thu, 7 Oct 2021 12:04:13 +0000 (06:04 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Oct 2021 14:18:39 +0000 (15:18 +0100)
commit614e7728abb91994085847238c54c067f5256d73
tree56bbb94df6ce3467d0c08b14aa9813f4a0e5400a
parent5833ad605c32044b3b2c723e5165aa0a22a04478
qed: Initialize debug string array

Coverity complains of an uninitialized variable.

CID 120847 (#1 of 1): Uninitialized scalar variable (UNINIT)
3. uninit_use_in_call: Using uninitialized value *sw_platform_str when calling qed_dump_str_param. [show details]
1344        offset += qed_dump_str_param(dump_buf + offset,
1345                                     dump, "sw-platform", sw_platform_str);

Fix this by removing dead code that references sw_platform_str.

Fixes: c3e12d576b647 ("qed: Update debug related changes")
Cc: Ariel Elior <aelior@marvell.com>
Cc: GR-everest-linux-l2@marvell.com
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Shai Malin <smalin@marvell.com>
Cc: Omkar Kulkarni <okulkarni@marvell.com>
Cc: Prabhakar Kushwaha <pkushwaha@marvell.com>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org (open list)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_debug.c