Staging: rtl8188eu: Move variable assignment
authorVatika Harlalka <vatikaharlalka@gmail.com>
Fri, 27 Feb 2015 09:48:02 +0000 (15:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 00:20:00 +0000 (16:20 -0800)
Variable path_on is assigned explicitly in the if branch and so
its assignment outside can be moved to the else branch.

Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/phy.c

index 2af3013f1d0f277e66c776c5f62694649b5ccc0b..3ac62656fb7516154fca335cce826abba2728dfa 100644 (file)
@@ -941,11 +941,11 @@ static void path_adda_on(struct adapter *adapt, u32 *adda_reg,
        u32 path_on;
        u32 i;
 
-       path_on = is_path_a_on ? 0x04db25a4 : 0x0b1b25a4;
        if (!is2t) {
                path_on = 0x0bdb25a0;
                phy_set_bb_reg(adapt, adda_reg[0], bMaskDWord, 0x0b1b25a0);
        } else {
+               path_on = is_path_a_on ? 0x04db25a4 : 0x0b1b25a4;
                phy_set_bb_reg(adapt, adda_reg[0], bMaskDWord, path_on);
        }
 
This page took 0.025107 seconds and 5 git commands to generate.