[PATCH 8/9] staging/rtl8187se: Remove duplicated code by using an offset

2013-02-12 Thread Peter Huewe
In SetAntennaConfig87SE both branches of if (bAntDiversity) do exactly the same, except that there is an offset of 0x80 for the register values if bAntDiversity is true. -> Consolidate both branches and assign the offset if necessary. Signed-off-by: Peter Huewe --- drivers/staging/rtl8187se/r81

[PATCH 8/9] staging/rtl8187se: Remove duplicated code by using an offset

2013-02-12 Thread Peter Huewe
In SetAntennaConfig87SE both branches of if (bAntDiversity) do exactly the same, except that there is an offset of 0x80 for the register values if bAntDiversity is true. -> Consolidate both branches and assign the offset if necessary. Signed-off-by: Peter Huewe --- drivers/staging/rtl8187se/r81