staging: wilc1000: rename pu8ssid in struct user_conn_req
authorChaehyun Lim <chaehyun.lim@gmail.com>
Fri, 12 Feb 2016 14:04:41 +0000 (23:04 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:25:38 +0000 (16:25 -0800)
This patch renames pu8ssid to ssid to remove pu8 prefix in struct
user_conn_req. There is no need to use prefix to show data type of this
variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h

index 7cfc722d6a57d4eb8e60eba005105206d2d28f91..397ef617656ed87b14027c28c9bd9d5b34a3441d 100644 (file)
@@ -971,11 +971,11 @@ static s32 Handle_Connect(struct wilc_vif *vif,
 
        hif_drv->usr_conn_req.ssid_len = pstrHostIFconnectAttr->ssid_len;
        if (pstrHostIFconnectAttr->ssid) {
-               hif_drv->usr_conn_req.pu8ssid = kmalloc(pstrHostIFconnectAttr->ssid_len + 1, GFP_KERNEL);
-               memcpy(hif_drv->usr_conn_req.pu8ssid,
+               hif_drv->usr_conn_req.ssid = kmalloc(pstrHostIFconnectAttr->ssid_len + 1, GFP_KERNEL);
+               memcpy(hif_drv->usr_conn_req.ssid,
                       pstrHostIFconnectAttr->ssid,
                       pstrHostIFconnectAttr->ssid_len);
-               hif_drv->usr_conn_req.pu8ssid[pstrHostIFconnectAttr->ssid_len] = '\0';
+               hif_drv->usr_conn_req.ssid[pstrHostIFconnectAttr->ssid_len] = '\0';
        }
 
        hif_drv->usr_conn_req.ies_len = pstrHostIFconnectAttr->ies_len;
@@ -1307,8 +1307,8 @@ static s32 Handle_ConnectTimeout(struct wilc_vif *vif)
                PRINT_ER("Failed to send dissconect config packet\n");
 
        hif_drv->usr_conn_req.ssid_len = 0;
-       kfree(hif_drv->usr_conn_req.pu8ssid);
-       hif_drv->usr_conn_req.pu8ssid = NULL;
+       kfree(hif_drv->usr_conn_req.ssid);
+       hif_drv->usr_conn_req.ssid = NULL;
        kfree(hif_drv->usr_conn_req.bssid);
        hif_drv->usr_conn_req.bssid = NULL;
        hif_drv->usr_conn_req.ies_len = 0;
@@ -1548,8 +1548,8 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
                        kfree(strConnectInfo.pu8ReqIEs);
                        strConnectInfo.pu8ReqIEs = NULL;
                        hif_drv->usr_conn_req.ssid_len = 0;
-                       kfree(hif_drv->usr_conn_req.pu8ssid);
-                       hif_drv->usr_conn_req.pu8ssid = NULL;
+                       kfree(hif_drv->usr_conn_req.ssid);
+                       hif_drv->usr_conn_req.ssid = NULL;
                        kfree(hif_drv->usr_conn_req.bssid);
                        hif_drv->usr_conn_req.bssid = NULL;
                        hif_drv->usr_conn_req.ies_len = 0;
@@ -1584,8 +1584,8 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
                        eth_zero_addr(hif_drv->assoc_bssid);
 
                        hif_drv->usr_conn_req.ssid_len = 0;
-                       kfree(hif_drv->usr_conn_req.pu8ssid);
-                       hif_drv->usr_conn_req.pu8ssid = NULL;
+                       kfree(hif_drv->usr_conn_req.ssid);
+                       hif_drv->usr_conn_req.ssid = NULL;
                        kfree(hif_drv->usr_conn_req.bssid);
                        hif_drv->usr_conn_req.bssid = NULL;
                        hif_drv->usr_conn_req.ies_len = 0;
@@ -1942,8 +1942,8 @@ static void Handle_Disconnect(struct wilc_vif *vif)
                eth_zero_addr(hif_drv->assoc_bssid);
 
                hif_drv->usr_conn_req.ssid_len = 0;
-               kfree(hif_drv->usr_conn_req.pu8ssid);
-               hif_drv->usr_conn_req.pu8ssid = NULL;
+               kfree(hif_drv->usr_conn_req.ssid);
+               hif_drv->usr_conn_req.ssid = NULL;
                kfree(hif_drv->usr_conn_req.bssid);
                hif_drv->usr_conn_req.bssid = NULL;
                hif_drv->usr_conn_req.ies_len = 0;
index 18d67e0586bcd2c9d064de6889cf4196e4e96b32..30acf40e855c14f0f5554bbc5ca85826e652ef53 100644 (file)
@@ -204,7 +204,7 @@ struct user_scan_req {
 
 struct user_conn_req {
        u8 *bssid;
-       u8 *pu8ssid;
+       u8 *ssid;
        u8 u8security;
        enum AUTHTYPE auth_type;
        size_t ssid_len;