]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8723bs: hal: remove redundant variable n
authorColin Ian King <colin.king@canonical.com>
Thu, 5 Sep 2019 15:22:27 +0000 (16:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Sep 2019 16:20:33 +0000 (18:20 +0200)
commitd9c50f35570334525b2c98c8c47bcbce7ac06a88
tree33ffeb3e16d06be687e2c1ac2acea2db868a85ff
parent2f7e8da8a208e7b200a2ac0aaddf5872b297772f
staging: rtl8723bs: hal: remove redundant variable n

The variable n is being assigned a value that is never read inside
an if statement block, the assignment is redundant and can be removed.
With this removed, n is only being used for a constant loop bounds
check, so replace n with that value instead and remove n completely.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190905152227.4610-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c