Skip to content

Commit e631548

Browse files
Colin Ian Kingjonmason
authored andcommitted
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 <[email protected]> Acked-by: Serge Semin <[email protected]> Signed-off-by: Jon Mason <[email protected]>
1 parent 0097ae5 commit e631548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ntb/test/ntb_pingpong.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static void pp_ping(struct pp_ctx *pp)
187187

188188
static void pp_pong(struct pp_ctx *pp)
189189
{
190-
u32 msg_data = -1, spad_data = -1;
190+
u32 msg_data, spad_data;
191191
int pidx = 0;
192192

193193
/* Read pong data */

0 commit comments

Comments
 (0)