summaryrefslogtreecommitdiffstats
path: root/drivers/ntb
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-06-09 12:21:28 +0100
committerJon Mason <jdmason@kudzu.us>2021-09-05 18:04:46 -0400
commite631548027cae026486300fe93542949df73a87d (patch)
tree7a3033dbc1bcbdd95f94f812c53ed33d905a1335 /drivers/ntb
parent0097ae5f7af5684f961a5f803ff7ad3e6f933668 (diff)
downloadlinux-stable-e631548027cae026486300fe93542949df73a87d.tar.gz
linux-stable-e631548027cae026486300fe93542949df73a87d.tar.bz2
linux-stable-e631548027cae026486300fe93542949df73a87d.zip
ntb: ntb_pingpong: remove redundant initialization of variables msg_data and spad_data
The variables msg_data and spad_data are being initialized with values that are never read, they are being updated later on. The initializations are redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb')
-rw-r--r--drivers/ntb/test/ntb_pingpong.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ntb/test/ntb_pingpong.c b/drivers/ntb/test/ntb_pingpong.c
index 2164e8492772..8aeca7914050 100644
--- a/drivers/ntb/test/ntb_pingpong.c
+++ b/drivers/ntb/test/ntb_pingpong.c
@@ -187,7 +187,7 @@ static void pp_ping(struct pp_ctx *pp)
static void pp_pong(struct pp_ctx *pp)
{
- u32 msg_data = -1, spad_data = -1;
+ u32 msg_data, spad_data;
int pidx = 0;
/* Read pong data */