Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
6065490a 203e2de3

+1 -1
+1 -1
drivers/staging/rtl8712/rtl871x_mp.c
··· 541 541 542 542 void r8712_SetSingleToneTx(struct _adapter *pAdapter, u8 bStart) 543 543 { 544 - u8 rfPath = pAdapter->mppriv.curr_rfpath; 544 + u8 rfPath; 545 545 546 546 switch (pAdapter->mppriv.antenna_tx) { 547 547 case ANTENNA_B: