mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
staging: rtl8712: remove redundant zero assignment to val32
Variable val32 is being assigned a zero value that is never read since val32 is being updated immediately afterwards. Remove this redundant assignment, cleans up clang warning: drivers/staging/rtl8712/hal_init.c:339:2: warning: Value stored to 'val32' is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
612b5bac4e
commit
59cf568ec9
@ -336,7 +336,6 @@ uint rtl8712_hal_init(struct _adapter *padapter)
|
||||
r8712_read32(padapter, RCR));
|
||||
val32 = r8712_read32(padapter, RCR);
|
||||
r8712_write32(padapter, RCR, (val32 | BIT(25))); /* Append PHY status */
|
||||
val32 = 0;
|
||||
val32 = r8712_read32(padapter, 0x10250040);
|
||||
r8712_write32(padapter, 0x10250040, (val32 & 0x00FFFFFF));
|
||||
/* for usb rx aggregation */
|
||||
|
Loading…
Reference in New Issue
Block a user