staging: rtl8188eu: remove redundant assignment to cond

Variable cond is initialized to a value that is never read and it
is re-assigned later. The initialization 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/20200223151858.416499-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Colin Ian King 2020-02-23 15:18:58 +00:00 committed by Greg Kroah-Hartman
parent 5a436cb134
commit 49ad571f70
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ static bool check_condition(struct adapter *adapt, const u32 condition)
u32 _board = odm->BoardType;
u32 _platform = odm->SupportPlatform;
u32 _interface = odm->SupportInterface;
u32 cond = condition;
u32 cond;
if (condition == 0xCDCDCDCD)
return true;