staging: rtl8188eu: Remove unused function rtw_getbbreg_cmd()
authornavin patidar <navin.patidar@gmail.com>
Thu, 10 Jul 2014 03:41:40 +0000 (09:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 04:09:55 +0000 (21:09 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_cmd.c
drivers/staging/rtl8188eu/include/rtw_cmd.h

index ff8d914c8198fe05e8841692a71feea0ccbad75f..54ac41bce3393f647386b801e20000fc2d64e5a8 100644 (file)
@@ -482,39 +482,6 @@ exit:
        return res;
 }
 
-u8 rtw_getbbreg_cmd(struct adapter  *padapter, u8 offset, u8 *pval)
-{
-       struct cmd_obj *ph2c;
-       struct readBB_parm *prdbbparm;
-       struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
-       u8      res = _SUCCESS;
-
-       ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
-       if (ph2c == NULL) {
-               res = _FAIL;
-               goto exit;
-               }
-       prdbbparm = kzalloc(sizeof(struct readBB_parm), GFP_KERNEL);
-
-       if (prdbbparm == NULL) {
-               kfree(ph2c);
-               return _FAIL;
-       }
-
-       INIT_LIST_HEAD(&ph2c->list);
-       ph2c->cmdcode = GEN_CMD_CODE(_GetBBReg);
-       ph2c->parmbuf = (unsigned char *)prdbbparm;
-       ph2c->cmdsz =  sizeof(struct readBB_parm);
-       ph2c->rsp = pval;
-       ph2c->rspsz = sizeof(struct readBB_rsp);
-
-       prdbbparm->offset = offset;
-
-       res = rtw_enqueue_cmd(pcmdpriv, ph2c);
-exit:
-       return res;
-}
-
 u8 rtw_setrfreg_cmd(struct adapter  *padapter, u8 offset, u32 val)
 {
        struct cmd_obj *ph2c;
index fe21838af5802c57bb569ecc83f3046b0c7ac7ab..f2ddb8aea4402ed03ff3ca762d08dcb84b0e4641 100644 (file)
@@ -743,7 +743,6 @@ u8 rtw_setopmode_cmd(struct adapter *padapter,
                     enum ndis_802_11_network_infra networktype);
 u8 rtw_setdatarate_cmd(struct adapter *padapter, u8 *rateset);
 u8 rtw_setrfreg_cmd(struct adapter *padapter, u8 offset, u32 val);
-u8 rtw_getbbreg_cmd(struct adapter *padapter, u8 offset, u8 *pval);
 u8 rtw_getrfreg_cmd(struct adapter *padapter, u8 offset, u8 *pval);
 u8 rtw_setrfintfs_cmd(struct adapter *padapter, u8 mode);
 u8 rtw_setrttbl_cmd(struct adapter *padapter,