Commit 9ad35460 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: antenna modes remove unused variables

dwTxAntennaSel is always the same as dwRxAntennaSel

byAntennaCount is never used.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 125cfc63
...@@ -319,8 +319,6 @@ struct vnt_private { ...@@ -319,8 +319,6 @@ struct vnt_private {
/* Antenna Diversity */ /* Antenna Diversity */
int bTxRxAntInv; int bTxRxAntInv;
u32 dwRxAntennaSel; u32 dwRxAntennaSel;
u32 dwTxAntennaSel;
u8 byAntennaCount;
u8 byRxAntennaMode; u8 byRxAntennaMode;
u8 byTxAntennaMode; u8 byTxAntennaMode;
u8 byRadioCtl; u8 byRadioCtl;
......
...@@ -249,9 +249,7 @@ static int device_init_registers(struct vnt_private *priv) ...@@ -249,9 +249,7 @@ static int device_init_registers(struct vnt_private *priv)
antenna = (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN); antenna = (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN);
if (antenna == (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN)) { if (antenna == (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN)) {
priv->byAntennaCount = 2;
priv->byTxAntennaMode = ANT_B; priv->byTxAntennaMode = ANT_B;
priv->dwTxAntennaSel = 1;
priv->dwRxAntennaSel = 1; priv->dwRxAntennaSel = 1;
if (priv->bTxRxAntInv == true) if (priv->bTxRxAntInv == true)
...@@ -259,8 +257,6 @@ static int device_init_registers(struct vnt_private *priv) ...@@ -259,8 +257,6 @@ static int device_init_registers(struct vnt_private *priv)
else else
priv->byRxAntennaMode = ANT_B; priv->byRxAntennaMode = ANT_B;
} else { } else {
priv->byAntennaCount = 1;
priv->dwTxAntennaSel = 0;
priv->dwRxAntennaSel = 0; priv->dwRxAntennaSel = 0;
if (antenna & EEP_ANTENNA_AUX) { if (antenna & EEP_ANTENNA_AUX) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment