提交 9ad35460 编写于 作者: M Malcolm Priestley 提交者: Greg Kroah-Hartman

staging: vt6656: antenna modes remove unused variables

dwTxAntennaSel is always the same as dwRxAntennaSel

byAntennaCount is never used.
Signed-off-by: NMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 125cfc63
......@@ -319,8 +319,6 @@ struct vnt_private {
/* Antenna Diversity */
int bTxRxAntInv;
u32 dwRxAntennaSel;
u32 dwTxAntennaSel;
u8 byAntennaCount;
u8 byRxAntennaMode;
u8 byTxAntennaMode;
u8 byRadioCtl;
......
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册