staging/rtl8187se: Remove duplicated code by using an offset
authorPeter Huewe <peterhuewe@gmx.de>
Wed, 13 Feb 2013 03:05:25 +0000 (04:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Feb 2013 18:28:37 +0000 (10:28 -0800)
commit7f0cb0a05df262c51084f8b079188395ea1ad3da
treea59760413b346751dba9fbff01f62ab258721e52
parenta638d6afbcf05cdd6d3a221544dbd8d1cd1eb3b6
staging/rtl8187se: Remove duplicated code by using an offset

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 <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/r8185b_init.c