summaryrefslogtreecommitdiff
path: root/drivers/staging/gdm724x
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-06-09 13:06:17 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-09 14:30:17 +0200
commit3cac092a05d80ef2eb63e788329bd72b6e764069 (patch)
tree617db35c2d5d50749e7ff7cf1b5e374aad0a6416 /drivers/staging/gdm724x
parent5bd9e94a11ab76b656c897609b7e0e2bf1e87d09 (diff)
staging: gdm724x: emove redundant initialization of variable hci_len
The variable hci_len 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. Signed-off-by: Colin Ian King <colin.king@canonical.com> Addresses-Coverity: ("Unused value") Link: https://lore.kernel.org/r/20210609120617.185975-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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c
index 571f47d39484..ad9ed3df9fcf 100644
--- a/drivers/staging/gdm724x/gdm_lte.c
+++ b/drivers/staging/gdm724x/gdm_lte.c
@@ -684,7 +684,6 @@ static void gdm_lte_multi_sdu_pkt(struct phy_dev *phy_dev, char *buf, int len)
u32 nic_type;
int index;
- hci_len = gdm_dev16_to_cpu(endian, multi_sdu->len);
num_packet = gdm_dev16_to_cpu(endian, multi_sdu->num_packet);
for (i = 0; i < num_packet; i++) {