staging: vt6656: Remove always 0 variable dwDiagRefCount
PATCH 1/1 staging: vt6656: Remove always 0 variable dwDiagRefCount
Remove > 0 code.
Signed-off-by Malcolm Priestley <[email protected]>
--- drivers/staging/vt6656/channel.c | 3 +-- drivers/staging/vt6656/device.h | 1 - drivers/staging/vt6656/rf.c | 3 --- drivers/staging/vt6656/rxtx.c | 56 ++++++++++++++-------------------------- drivers/staging/vt6656/wcmd.c | 2 -- 5 files changed, 21 insertions(+), 44 deletions(-)
drivers/staging/vt6656/channel.c +1 -2
@@ -423,8 +423,7 @@ void CHvInitChannelTable(struct vnt_private *pDevice)break ; } -if ((pDevice->dwDiagRefCount !=0 ) || - (pDevice->b11hEable == true)) { +if (pDevice->b11hEable == true) {if (bMultiBand == true) {for (ii =0 ; ii <CB_MAX_CHANNEL ; ii++) { sChannelTbl[ii+1 ].bValid = true;
drivers/staging/vt6656/device.h +0 -1
@@ -697,7 +697,6 @@ struct vnt_private {u8 byBBPreEDIndex;int bRadioCmd; -u32 dwDiagRefCount;/* For FOE Tuning */ u8 byFOETuning;
drivers/staging/vt6656/rf.c +0 -3
@@ -740,9 +740,6 @@ int RFbSetPower(struct vnt_private *priv, u32 rate, u32 channel)int ret = true;u8 power = priv->byCCKPwr; -if (priv->dwDiagRefCount) -return true; -if (channel ==0 )return -EINVAL ;
drivers/staging/vt6656/rxtx.c +20 -36
85 lines not on this page · raw message
drivers/staging/vt6656/wcmd.c +0 -2
@@ -283,8 +283,6 @@ void vRunCommand(struct work_struct *work)if (pDevice->Flags & fMP_DISCONNECTED)return ; -if (pDevice->dwDiagRefCount !=0 ) -return ;if (pDevice->bCmdRunning != true)return ;
Signature · 1 line
1.8.4.4