Commit 7a9331c0 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6655: RFbSetPower remove unused variable byPwrdBm

byPwrdBm is set but never used.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b0c5881e
...@@ -775,7 +775,6 @@ bool RFbSetPower( ...@@ -775,7 +775,6 @@ bool RFbSetPower(
bool bResult = true; bool bResult = true;
unsigned char byPwr = 0; unsigned char byPwr = 0;
unsigned char byDec = 0; unsigned char byDec = 0;
unsigned char byPwrdBm = 0;
if (priv->dwDiagRefCount != 0) if (priv->dwDiagRefCount != 0)
return true; return true;
...@@ -792,7 +791,6 @@ bool RFbSetPower( ...@@ -792,7 +791,6 @@ bool RFbSetPower(
return false; return false;
byPwr = priv->abyCCKPwrTbl[uCH]; byPwr = priv->abyCCKPwrTbl[uCH];
byPwrdBm = priv->abyCCKDefaultPwr[uCH];
break; break;
case RATE_6M: case RATE_6M:
case RATE_9M: case RATE_9M:
...@@ -806,15 +804,6 @@ bool RFbSetPower( ...@@ -806,15 +804,6 @@ bool RFbSetPower(
if (byDec >= priv->byMaxPwrLevel) if (byDec >= priv->byMaxPwrLevel)
byDec = priv->byMaxPwrLevel-1; byDec = priv->byMaxPwrLevel-1;
if (priv->byRFType == RF_UW2452) {
byPwrdBm = byDec - byPwr;
byPwrdBm /= 3;
} else {
byPwrdBm = byDec - byPwr;
byPwrdBm >>= 1;
}
byPwrdBm += priv->abyOFDMDefaultPwr[uCH];
byPwr = byDec; byPwr = byDec;
break; break;
case RATE_24M: case RATE_24M:
...@@ -822,7 +811,6 @@ bool RFbSetPower( ...@@ -822,7 +811,6 @@ bool RFbSetPower(
case RATE_48M: case RATE_48M:
case RATE_54M: case RATE_54M:
byPwr = priv->abyOFDMPwrTbl[uCH]; byPwr = priv->abyOFDMPwrTbl[uCH];
byPwrdBm = priv->abyOFDMDefaultPwr[uCH];
break; break;
} }
......
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