mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 18:25:48 -04:00
Staging: rtl8188eu: Remove unnecessary variable
Remove unnecessary variable and replace its uses with previously defined variable. Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4c3fa64038
commit
065be69f26
@@ -117,10 +117,9 @@ static void rf_serial_write(struct adapter *adapt,
|
||||
u32 data_and_addr = 0;
|
||||
struct hal_data_8188e *hal_data = GET_HAL_DATA(adapt);
|
||||
struct bb_reg_def *phyreg = &hal_data->PHYRegDef[rfpath];
|
||||
u32 newoffset;
|
||||
|
||||
newoffset = offset & 0xff;
|
||||
data_and_addr = ((newoffset<<20) | (data&0x000fffff)) & 0x0fffffff;
|
||||
offset &= 0xff;
|
||||
data_and_addr = ((offset<<20) | (data&0x000fffff)) & 0x0fffffff;
|
||||
phy_set_bb_reg(adapt, phyreg->rf3wireOffset, bMaskDWord, data_and_addr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user