summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8712/rtl871x_mp_ioctl.c
diff options
context:
space:
mode:
authorDeepak Mishra <linux.dkm@gmail.com>2019-06-09 18:01:41 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-10 17:57:21 +0200
commit43dfe7df06a9175a704af11bd848769432824665 (patch)
tree0e1d148838b1d2254a3d4d46e56d1fae5a9dc63e /drivers/staging/rtl8712/rtl871x_mp_ioctl.c
parent906ad742fdbfc451520af37ff3b1e6fc85c3f898 (diff)
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: Deepak Mishra <linux.dkm@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/rtl871x_mp_ioctl.c')
-rw-r--r--drivers/staging/rtl8712/rtl871x_mp_ioctl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_mp_ioctl.c b/drivers/staging/rtl8712/rtl871x_mp_ioctl.c
index 588346da1412..add6c18195d6 100644
--- a/drivers/staging/rtl8712/rtl871x_mp_ioctl.c
+++ b/drivers/staging/rtl8712/rtl871x_mp_ioctl.c
@@ -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;
}