aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8712
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-01-20 22:31:06 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-22 11:48:05 +0100
commit6065490a1f227c652b0b84f3c282bb8d2a40e640 (patch)
tree2bce4617a5390355c0205032ef43ddd5b53f80c0 /drivers/staging/rtl8712
parentstaging: fsl-mc: Add SPDX license identifiers (diff)
downloadlinux-dev-6065490a1f227c652b0b84f3c282bb8d2a40e640.tar.xz
linux-dev-6065490a1f227c652b0b84f3c282bb8d2a40e640.zip
staging: rtl8712: remove redundant initialization to 'rfPath'
The value stored to rfPath during initialization is never read, the following switch statement re-assigns it a new value on all the case and default paths. Hence the initialization is redundant and can be removed. Cleans up clang warning: drivers/staging/rtl8712/rtl871x_mp.c:544:5: warning: Value stored to 'rfPath' 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>
Diffstat (limited to 'drivers/staging/rtl8712')
-rw-r--r--drivers/staging/rtl8712/rtl871x_mp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_mp.c b/drivers/staging/rtl8712/rtl871x_mp.c
index 3c10a2c848c8..ba208a2e1e4e 100644
--- a/drivers/staging/rtl8712/rtl871x_mp.c
+++ b/drivers/staging/rtl8712/rtl871x_mp.c
@@ -541,7 +541,7 @@ void r8712_SetSingleCarrierTx(struct _adapter *pAdapter, u8 bStart)
void r8712_SetSingleToneTx(struct _adapter *pAdapter, u8 bStart)
{
- u8 rfPath = pAdapter->mppriv.curr_rfpath;
+ u8 rfPath;
switch (pAdapter->mppriv.antenna_tx) {
case ANTENNA_B: