[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20210417173028.375C3C433F1@smtp.codeaurora.org>
Date: Sat, 17 Apr 2021 17:30:28 +0000 (UTC)
From: Kalle Valo <kvalo@...eaurora.org>
To: Yang Li <yang.lee@...ux.alibaba.com>
Cc: pkshih@...ltek.com, davem@...emloft.net, kuba@...nel.org,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Yang Li <yang.lee@...ux.alibaba.com>
Subject: Re: [PATCH] rtlwifi: rtl8188ee: remove redundant assignment of
variable
rtlpriv->btcoexist.reg_bt_sco
Yang Li <yang.lee@...ux.alibaba.com> wrote:
> Assigning value "3" to "rtlpriv->btcoexist.reg_bt_sco" here, but that
> stored value is overwritten before it can be used.
>
> Coverity reports this problem as
> CWE563: A value assigned to a variable is never used.
> drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c:
> rtl8188ee_bt_reg_init
>
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@...ux.alibaba.com>
Patch applied to wireless-drivers-next.git, thanks.
8e04a06530c6 rtlwifi: rtl8188ee: remove redundant assignment of variable rtlpriv->btcoexist.reg_bt_sco
--
https://patchwork.kernel.org/project/linux-wireless/patch/1617182023-110950-1-git-send-email-yang.lee@linux.alibaba.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists