From: Aastha Gupta Date: Sun, 8 Oct 2017 04:54:52 +0000 (+0530) Subject: staging: rtl8723bs: remove unused variables X-Git-Tag: v4.19~2226^2~111 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77537ebae2c3e1e951a68d20c4ae64f83210df1d;p=platform%2Fkernel%2Flinux-rpi.git staging: rtl8723bs: remove unused variables It seems these two operations are just dead code. The values of these variables are not used subsequently. Signed-off-by: Aastha Gupta Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c index d815a693..e5354ce 100644 --- a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c +++ b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c @@ -590,14 +590,10 @@ u8 rtw_set_802_11_authentication_mode(struct adapter *padapter, enum NDIS_802_11 u8 rtw_set_802_11_add_wep(struct adapter *padapter, struct ndis_802_11_wep *wep) { - u8 bdefaultkey; - u8 btransmitkey; sint keyid, res; struct security_priv *psecuritypriv = &(padapter->securitypriv); u8 ret = _SUCCESS; - bdefaultkey = (wep->KeyIndex & 0x40000000) > 0 ? false : true; /* for ??? */ - btransmitkey = (wep->KeyIndex & 0x80000000) > 0 ? true : false; /* for ??? */ keyid = wep->KeyIndex & 0x3fffffff; if (keyid >= 4) {