]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: rtlwifi: remove redundant assignments to ul_enc_algo
authorColin Ian King <colin.king@canonical.com>
Wed, 8 Nov 2017 13:30:31 +0000 (13:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2017 08:20:40 +0000 (09:20 +0100)
commit6b549e20b63421e8655f7fe3612de414ec16ee2a
treec7434fe130364e02bd4815a0f906a813783134f7
parent15bfaf777712f62e5d0c99b78e27978dab9a56c1
staging: rtlwifi: remove redundant assignments to ul_enc_algo

Variable ul_enc_algo is being initialized with a value that is never
read, it is being set again in the following switch statements in
all of the case and default paths. Hence the unitialization is
redundant and can be removed.  Cleans up two clang warnings:

Value stored to 'ul_enc_algo' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/cam.c