Staging: rtl8188eu: Remove unnecessary variable
authorVatika Harlalka <vatikaharlalka@gmail.com>
Mon, 23 Feb 2015 09:16:13 +0000 (14:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Feb 2015 20:54:12 +0000 (12:54 -0800)
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>
drivers/staging/rtl8188eu/hal/phy.c

index cee7cb7979d7dd5e8149423a761107fe91e9fe42..3a3ae17d384cb5d211999f28d2614268c088c953 100644 (file)
@@ -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);
 }