Skip to content

Commit

Permalink
ntb: ntb_pingpong: remove redundant initialization of variables msg_d…
Browse files Browse the repository at this point in the history
…ata 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>
  • Loading branch information
Colin Ian King authored and jonmason committed Sep 5, 2021
1 parent 0097ae5 commit e631548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ntb/test/ntb_pingpong.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit e631548

Please sign in to comment.