From: Malcolm Priestley Date: Sat, 19 Jul 2014 11:30:15 +0000 (+0100) Subject: staging: vt6656: antenna modes remove unused variables X-Git-Tag: v4.9.8~5976^2~429 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ad354609e17593ce493c247f0080d90ea55541c;p=platform%2Fkernel%2Flinux-rpi3.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 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) {