Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Jon Mason
e6315480 0097ae5f

+1 -1
+1 -1
drivers/ntb/test/ntb_pingpong.c
··· 187 187 188 188 static void pp_pong(struct pp_ctx *pp) 189 189 { 190 - u32 msg_data = -1, spad_data = -1; 190 + u32 msg_data, spad_data; 191 191 int pidx = 0; 192 192 193 193 /* Read pong data */