wimax/i2400m: remove redundant assignment to variable result
authorColin Ian King <colin.king@canonical.com>
Tue, 27 Aug 2019 11:47:39 +0000 (12:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2019 21:49:37 +0000 (14:49 -0700)
Variable result is being assigned a value that is never read and result
is being re-assigned a little later on. The assignment is redundant
and hence can be removed.

Addresses-Coverity: ("Ununsed value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wimax/i2400m/rx.c

index d28b96d0691940bbf1c1e70f8a62e8857afd4c51..c9fb619a9e010736a7f1b833b28f66a004ee156d 100644 (file)
@@ -1253,7 +1253,6 @@ int i2400m_rx(struct i2400m *i2400m, struct sk_buff *skb)
        skb_len = skb->len;
        d_fnstart(4, dev, "(i2400m %p skb %p [size %u])\n",
                  i2400m, skb, skb_len);
-       result = -EIO;
        msg_hdr = (void *) skb->data;
        result = i2400m_rx_msg_hdr_check(i2400m, msg_hdr, skb_len);
        if (result < 0)