diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2014-07-19 11:30:15 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-21 19:11:58 (GMT) |
commit | 9ad354609e17593ce493c247f0080d90ea55541c (patch) | |
tree | 0cd9fdd9adce33d61665526825b4f6aee61bf11e | |
parent | 125cfc634403f7715e9fcd0780995d395ab266c5 (diff) | |
download | linux-9ad354609e17593ce493c247f0080d90ea55541c.tar.xz |
staging: vt6656: antenna modes remove unused variables
dwTxAntennaSel is always the same as dwRxAntennaSel
byAntennaCount is never used.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/vt6656/device.h | 2 | ||||
-rw-r--r-- | drivers/staging/vt6656/main_usb.c | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h index 7c81105..ecf8da0 100644 --- a/drivers/staging/vt6656/device.h +++ b/drivers/staging/vt6656/device.h @@ -319,8 +319,6 @@ struct vnt_private { /* Antenna Diversity */ int bTxRxAntInv; u32 dwRxAntennaSel; - u32 dwTxAntennaSel; - u8 byAntennaCount; u8 byRxAntennaMode; u8 byTxAntennaMode; u8 byRadioCtl; diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index c0951bf..4ca6639 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -249,9 +249,7 @@ static int device_init_registers(struct vnt_private *priv) antenna = (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN); if (antenna == (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN)) { - priv->byAntennaCount = 2; priv->byTxAntennaMode = ANT_B; - priv->dwTxAntennaSel = 1; priv->dwRxAntennaSel = 1; if (priv->bTxRxAntInv == true) @@ -259,8 +257,6 @@ static int device_init_registers(struct vnt_private *priv) else priv->byRxAntennaMode = ANT_B; } else { - priv->byAntennaCount = 1; - priv->dwTxAntennaSel = 0; priv->dwRxAntennaSel = 0; if (antenna & EEP_ANTENNA_AUX) { |