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

staging: gdm724x: remove redundant assignment of pointer w

Pointer w is being assigned a value that is never read, it is
being re-assigned a new value later. The assignment is redundant
and can be removed.

Cleans up clan scan build warning:
drivers/staging/gdm724x/gdm_lte.c:198:2: warning: Value stored to 'w'
is never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220307144603.136846-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
8d6319cd 56955aae

-1
-1
drivers/staging/gdm724x/gdm_lte.c
··· 195 195 pseudo_header.ph.ph_len = be16_to_cpu(ipv6->payload_len); 196 196 pseudo_header.ph.ph_nxt = ipv6->nexthdr; 197 197 198 - w = (u16 *)&pseudo_header; 199 198 for (i = 0; i < ARRAY_SIZE(pseudo_header.pa); i++) { 200 199 pa = pseudo_header.pa[i]; 201 200 sum = csum_add(sum, csum_unfold((__force __sum16)pa));