aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/gdm724x
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-04-05 14:06:19 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-13 08:55:31 +0200
commit84d041ffc98f9a2411b68480f0492f9928d72cfa (patch)
tree3fc11433c989797f488b4f7ca675bd423a5e299f /drivers/staging/gdm724x
parentStaging: vt6655: Replace camel case variable names. (diff)
downloadlinux-dev-84d041ffc98f9a2411b68480f0492f9928d72cfa.tar.xz
linux-dev-84d041ffc98f9a2411b68480f0492f9928d72cfa.zip
staging: gdm724x: remove redundant assignment to pointer 'w'
The pointer 'w' is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20200405130619.377043-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gdm724x')
-rw-r--r--drivers/staging/gdm724x/gdm_lte.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c
index 354727f0a1fc..eb309190f5be 100644
--- a/drivers/staging/gdm724x/gdm_lte.c
+++ b/drivers/staging/gdm724x/gdm_lte.c
@@ -172,7 +172,7 @@ static int gdm_lte_emulate_arp(struct sk_buff *skb_in, u32 nic_type)
static __sum16 icmp6_checksum(struct ipv6hdr *ipv6, u16 *ptr, int len)
{
- unsigned short *w = ptr;
+ unsigned short *w;
__wsum sum = 0;
int i;
u16 pa;