From: Malcolm Priestley Date: Sat, 19 Jul 2014 11:30:15 +0000 (+0100) Subject: staging: vt6656: antenna modes remove unused variables X-Git-Tag: v3.17-rc1~123^2~429 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9ad354609e17593ce493c247f0080d90ea55541c;p=karo-tx-linux.git staging: vt6656: antenna modes remove unused variables dwTxAntennaSel is always the same as dwRxAntennaSel byAntennaCount is never used. Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h index 7c8110586da2..ecf8da02cd94 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 c0951bf33e4d..4ca6639fb2ab 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) {