From patchwork Fri Feb 12 14:04:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8291981 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2C7A5BEEED for ; Fri, 12 Feb 2016 14:05:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 33D2020397 for ; Fri, 12 Feb 2016 14:05:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2E7DD203DA for ; Fri, 12 Feb 2016 14:05:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752827AbcBLOFH (ORCPT ); Fri, 12 Feb 2016 09:05:07 -0500 Received: from mail-pa0-f68.google.com ([209.85.220.68]:35319 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752813AbcBLOFE (ORCPT ); Fri, 12 Feb 2016 09:05:04 -0500 Received: by mail-pa0-f68.google.com with SMTP id fl4so3853442pad.2 for ; Fri, 12 Feb 2016 06:05:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/KGIi6UdaQ4M2hcw1lxNvLIL0g+DuVAhSLNzAXKvaTs=; b=FWRRsxXIcyjoHO7Y+7n1gFRezdQOzRTwaJV0ywdP2yu3bZJxx+XndJJvfmKH0GL9eJ U1o8dAk4oA+o3wvX0duOo+M539DC0Hmy77v51cwOcYXgABIsxbrt/6QB0Zpv5LI+ZaH/ k1Jbxcghb5rmADZCO9ddE5KGac6YMO4xM2SWPkYgKi/qBppxYXN+ALbg1jfRyPxcD98t F6/gZSjfFQGG/8MQW+wd6w6mx2jwVo4LwmgmP97OIRMkYSfZpM7i+HiIVa2h0//KCfbe S4Y+TGFrS+BE6PFif8ZEhcqrEGeI/9PAiHBEyWWNwj23fD+7vb7ijcajpZoJe1DMYcad HoGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/KGIi6UdaQ4M2hcw1lxNvLIL0g+DuVAhSLNzAXKvaTs=; b=ma4Aw2F+nxeIPZ5AwCml42UYdXgTkGGeQskXDWtjoUYkIDZTD6aIAp/Cy6METjVS8M bPdV4nKdTtCoAQtKAKnhsgQdJCg925UOgtM1GQ+jHj5o1QDEsTlFusk22ssUfOi/CAix vBks/B0dsYi8AkdP6MybaSGhUfQyR4CQ2SuIYgYXCZk8pTLB0ev8xksejHTNe8+Lwocc b/NeLfWwtHDb1+9UWINd6SMyWUttTK2jZeXxvWg+OU6SEZdQ+FmLllJJzrxy4bGlrzUd vV6nm4Tcu106osiK73q050XQP6OXCmH+vwYSAWdwpd9u0HeSX8hey/39B9TvKBXn3NIH IJSA== X-Gm-Message-State: AG10YOQz5UTDpZozGmNfS9V6ofGuzEu3nXbHOcEFY0FOnnD2u/UILv/jQkAEMghfajW5vg== X-Received: by 10.66.141.71 with SMTP id rm7mr2367127pab.106.1455285903766; Fri, 12 Feb 2016 06:05:03 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id u64sm19814147pfa.86.2016.02.12.06.05.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Feb 2016 06:05:03 -0800 (PST) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, austin.shin@atmel.com, chris.park@atmel.com, tony.cho@atmel.com, glen.lee@atmel.com, leo.kim@atmel.com, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Chaehyun Lim Subject: [PATCH 05/11] staging: wilc1000: rename pu8ssid in struct user_conn_req Date: Fri, 12 Feb 2016 23:04:41 +0900 Message-Id: <1455285887-29946-5-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1455285887-29946-1-git-send-email-chaehyun.lim@gmail.com> References: <1455285887-29946-1-git-send-email-chaehyun.lim@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/staging/wilc1000/host_interface.c | 22 +++++++++++----------- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 7cfc722..397ef61 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -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; diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index 18d67e0..30acf40 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -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;