Commit 43dfe7df authored by Deepak Mishra's avatar Deepak Mishra Committed by Greg Kroah-Hartman
Browse files

staging: rtl8712: Removed redundant code from function oid_rt_pro_write_register_hdl



In function oid_rt_pro_write_register_hdl, Adapter->ImrContent is
assigned with RegRWStruct->value but Adapter->ImrContent is never used
anywhere else. So those lines has no impact and are removed removed.

As that was the only place where ImrContent was used, so the member
variable is removed from the structure _adapter

Signed-off-by: default avatarDeepak Mishra <linux.dkm@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 906ad742
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -149,7 +149,6 @@ struct _adapter {
	bool	surprise_removed;
	bool	suspended;
	u32	IsrContent;
	u32	ImrContent;
	u8	eeprom_address_size;
	u8	hw_init_completed;
	struct task_struct *cmdThread;
+0 −5
Original line number Diff line number Diff line
@@ -661,11 +661,6 @@ uint oid_rt_pro_write_register_hdl(struct oid_par_priv *poid_par_priv)
			status = RNDIS_STATUS_NOT_ACCEPTED;
			break;
		}

		if ((status == RNDIS_STATUS_SUCCESS) &&
		    (RegRWStruct->offset == HIMR) &&
		    (RegRWStruct->width == 4))
			Adapter->ImrContent = RegRWStruct->value;
	}
	return status;
}