mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-03 03:21:57 -05:00
net: hns3: remove redundant assignment to pointer reg_info
Pointer reg_info is being initialized with a value that is never read and
is being re-assigned a little later on. The assignment is redundant
and hence can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
56fcd40f8a
commit
bdad7529ee
@@ -279,7 +279,7 @@ static void hclge_dbg_dump_dcb(struct hclge_dev *hdev, const char *cmd_buf)
|
||||
|
||||
static void hclge_dbg_dump_reg_cmd(struct hclge_dev *hdev, const char *cmd_buf)
|
||||
{
|
||||
struct hclge_dbg_reg_type_info *reg_info = &hclge_dbg_reg_info[0];
|
||||
struct hclge_dbg_reg_type_info *reg_info;
|
||||
bool has_dump = false;
|
||||
int i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user