mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
staging: vt6656: struct vnt_private remove unused variable bRadioControlOff
This variable is never set. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
46fc601e67
commit
dc5cfd9be6
3 changed files with 2 additions and 4 deletions
|
@ -771,7 +771,7 @@ int vnt_radio_power_on(struct vnt_private *priv)
|
|||
{
|
||||
int ret = true;
|
||||
|
||||
if (priv->bHWRadioOff == true || priv->bRadioControlOff == true)
|
||||
if (priv->bHWRadioOff == true)
|
||||
return false;
|
||||
|
||||
priv->bRadioOff = false;
|
||||
|
|
|
@ -368,7 +368,6 @@ struct vnt_private {
|
|||
int bShortSlotTime;
|
||||
int bBarkerPreambleMd;
|
||||
|
||||
int bRadioControlOff;
|
||||
int bRadioOff;
|
||||
|
||||
/* Power save */
|
||||
|
|
|
@ -381,8 +381,7 @@ static int device_init_registers(struct vnt_private *priv)
|
|||
|
||||
vnt_mac_reg_bits_on(priv, MAC_REG_GPIOCTL0, 0x01);
|
||||
|
||||
if ((priv->bHWRadioOff == true) ||
|
||||
(priv->bRadioControlOff == true)) {
|
||||
if (priv->bHWRadioOff == true) {
|
||||
vnt_radio_power_off(priv);
|
||||
} else {
|
||||
vnt_radio_power_on(priv);
|
||||
|
|
Loading…
Reference in a new issue