Commit dc5cfd9b authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman
Browse files

staging: vt6656: struct vnt_private remove unused variable bRadioControlOff



This variable is never set.

Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 46fc601e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -771,7 +771,7 @@ int vnt_radio_power_on(struct vnt_private *priv)
{
{
	int ret = true;
	int ret = true;


	if (priv->bHWRadioOff == true || priv->bRadioControlOff == true)
	if (priv->bHWRadioOff == true)
		return false;
		return false;


	priv->bRadioOff = false;
	priv->bRadioOff = false;
+0 −1
Original line number Original line Diff line number Diff line
@@ -368,7 +368,6 @@ struct vnt_private {
	int bShortSlotTime;
	int bShortSlotTime;
	int bBarkerPreambleMd;
	int bBarkerPreambleMd;


	int bRadioControlOff;
	int bRadioOff;
	int bRadioOff;


	/* Power save */
	/* Power save */
+1 −2
Original line number Original line Diff line number Diff line
@@ -381,8 +381,7 @@ static int device_init_registers(struct vnt_private *priv)


	vnt_mac_reg_bits_on(priv, MAC_REG_GPIOCTL0, 0x01);
	vnt_mac_reg_bits_on(priv, MAC_REG_GPIOCTL0, 0x01);


	if ((priv->bHWRadioOff == true) ||
	if (priv->bHWRadioOff == true) {
				(priv->bRadioControlOff == true)) {
		vnt_radio_power_off(priv);
		vnt_radio_power_off(priv);
	} else {
	} else {
		vnt_radio_power_on(priv);
		vnt_radio_power_on(priv);