staging: rtl8723bs: hal: remove redundant assignment to variable n
authorColin Ian King <colin.king@canonical.com>
Tue, 23 Jul 2019 14:59:05 +0000 (15:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 07:56:05 +0000 (09:56 +0200)
The variable n is being assigned a value that is never read, the
assignment 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/20190723145905.13514-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c

index e23b39ab16c50eafbef213e94eaab916573cb9ff..032d01834f3fac74127cab50874f463dffe0268a 100644 (file)
@@ -486,7 +486,6 @@ initbuferror:
        }
 
        if (precvpriv->pallocated_recv_buf) {
-               n = NR_RECVBUFF * sizeof(struct recv_buf) + 4;
                kfree(precvpriv->pallocated_recv_buf);
                precvpriv->pallocated_recv_buf = NULL;
        }