From patchwork Fri Feb 12 14:04:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8291971 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 20E53BEEE5 for ; Fri, 12 Feb 2016 14:05:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2CBDC20397 for ; Fri, 12 Feb 2016 14:05:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7AF562035D for ; Fri, 12 Feb 2016 14:05:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752813AbcBLOFI (ORCPT ); Fri, 12 Feb 2016 09:05:08 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36003 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752898AbcBLOFB (ORCPT ); Fri, 12 Feb 2016 09:05:01 -0500 Received: by mail-pf0-f194.google.com with SMTP id e127so4027677pfe.3 for ; Fri, 12 Feb 2016 06:05:00 -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=PvQ5BlgbYFY5HGYJIP5fQff1ehx9UWhQeZkKGKN66aI=; b=kUvfnOzv5ts34GThSA0AmD3CcWDdIxjEPW6yJc2xRgb9CZUjSGPBO+lLLSRQw4YN3t vbKZc1EF7/FLo+VYuU0KA/VcnGw7ZO5Z1Bph0d74On7Hbz8s8vDWuHEWxbjig33+cxb7 Us54JfUgCUPsxmEGKglN2Fhwlg3gZSsyX10Gi8I0SN2WmzAKcqDOqCr+3g0tKqLrPK9r wS4SmiNV+xcIjYYJOgVBNRQP2MrUxA3PHWr+n6sNk+0Fv5WZr3xqPhxAI64r9yMLkjif BWnz2Mqr5DJAIL6Z7HzfKxwBy6D9CTil7hWHaRptTijAIti5ttxCkM2VXXKy3Qy7RUIC iRfA== 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=PvQ5BlgbYFY5HGYJIP5fQff1ehx9UWhQeZkKGKN66aI=; b=ZXn340OveOVP/m7TSIbLyM16dT0/j3XLG7oRUWIa8X+L1BHxzgeuECb2IwLe3rr8SX d5tAEalqAn0J6F1fJZe1QA/FqtNWeOJowbwanu3FOBWczHy9Bw2yxx3cHQgIHe4Ma/ar udHdQfK6AjnDEoFRwuhUbIg3wqJOkA72z3yzb948mMQRcn47mNuh09WvOA/44+NpZfGf My+J1ELwBt1O1TA1dbEwbbH5TIs3gpRt7LBYSPD4inGS6emgsUO2svdShnUVrmrV6NI3 vx4dq+FKkEfRSye+OATXMUIKXGb4kN+QO3zHRvrXdQE6/5bpARuLdWj0uENU58IUQdp6 Yh6w== X-Gm-Message-State: AG10YORTOMYYewMP6jP959TtMItpHGegACOwY6cN70ESaILI+FaSBgwkAbYNNFfSCjNeEA== X-Received: by 10.98.65.193 with SMTP id g62mr2371357pfd.148.1455285900687; Fri, 12 Feb 2016 06:05:00 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id u64sm19814147pfa.86.2016.02.12.06.04.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Feb 2016 06:05:00 -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 04/11] staging: wilc1000: rename pu8bssid in struct user_conn_req Date: Fri, 12 Feb 2016 23:04:40 +0900 Message-Id: <1455285887-29946-4-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 pu8bssid to bssid 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 | 30 +++++++++++++++--------------- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index cd4a0a6..7cfc722 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -965,8 +965,8 @@ static s32 Handle_Connect(struct wilc_vif *vif, } if (pstrHostIFconnectAttr->bssid) { - hif_drv->usr_conn_req.pu8bssid = kmalloc(6, GFP_KERNEL); - memcpy(hif_drv->usr_conn_req.pu8bssid, pstrHostIFconnectAttr->bssid, 6); + hif_drv->usr_conn_req.bssid = kmalloc(6, GFP_KERNEL); + memcpy(hif_drv->usr_conn_req.bssid, pstrHostIFconnectAttr->bssid, 6); } hif_drv->usr_conn_req.ssid_len = pstrHostIFconnectAttr->ssid_len; @@ -1271,9 +1271,9 @@ static s32 Handle_ConnectTimeout(struct wilc_vif *vif) memset(&strConnectInfo, 0, sizeof(tstrConnectInfo)); if (hif_drv->usr_conn_req.conn_result) { - if (hif_drv->usr_conn_req.pu8bssid) { + if (hif_drv->usr_conn_req.bssid) { memcpy(strConnectInfo.au8bssid, - hif_drv->usr_conn_req.pu8bssid, 6); + hif_drv->usr_conn_req.bssid, 6); } if (hif_drv->usr_conn_req.ies) { @@ -1309,8 +1309,8 @@ static s32 Handle_ConnectTimeout(struct wilc_vif *vif) 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.pu8bssid); - hif_drv->usr_conn_req.pu8bssid = NULL; + kfree(hif_drv->usr_conn_req.bssid); + hif_drv->usr_conn_req.bssid = NULL; hif_drv->usr_conn_req.ies_len = 0; kfree(hif_drv->usr_conn_req.ies); hif_drv->usr_conn_req.ies = NULL; @@ -1503,13 +1503,13 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, eth_zero_addr(wilc_connected_ssid); } - if (hif_drv->usr_conn_req.pu8bssid) { - memcpy(strConnectInfo.au8bssid, hif_drv->usr_conn_req.pu8bssid, 6); + if (hif_drv->usr_conn_req.bssid) { + memcpy(strConnectInfo.au8bssid, hif_drv->usr_conn_req.bssid, 6); if ((u8MacStatus == MAC_CONNECTED) && (strConnectInfo.u16ConnectStatus == SUCCESSFUL_STATUSCODE)) { memcpy(hif_drv->assoc_bssid, - hif_drv->usr_conn_req.pu8bssid, ETH_ALEN); + hif_drv->usr_conn_req.bssid, ETH_ALEN); } } @@ -1550,8 +1550,8 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, 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.pu8bssid); - hif_drv->usr_conn_req.pu8bssid = NULL; + kfree(hif_drv->usr_conn_req.bssid); + hif_drv->usr_conn_req.bssid = NULL; hif_drv->usr_conn_req.ies_len = 0; kfree(hif_drv->usr_conn_req.ies); hif_drv->usr_conn_req.ies = NULL; @@ -1586,8 +1586,8 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, 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.pu8bssid); - hif_drv->usr_conn_req.pu8bssid = NULL; + kfree(hif_drv->usr_conn_req.bssid); + hif_drv->usr_conn_req.bssid = NULL; hif_drv->usr_conn_req.ies_len = 0; kfree(hif_drv->usr_conn_req.ies); hif_drv->usr_conn_req.ies = NULL; @@ -1944,8 +1944,8 @@ static void Handle_Disconnect(struct wilc_vif *vif) 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.pu8bssid); - hif_drv->usr_conn_req.pu8bssid = NULL; + kfree(hif_drv->usr_conn_req.bssid); + hif_drv->usr_conn_req.bssid = NULL; hif_drv->usr_conn_req.ies_len = 0; kfree(hif_drv->usr_conn_req.ies); hif_drv->usr_conn_req.ies = NULL; diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index 08c072c..18d67e0 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -203,7 +203,7 @@ struct user_scan_req { }; struct user_conn_req { - u8 *pu8bssid; + u8 *bssid; u8 *pu8ssid; u8 u8security; enum AUTHTYPE auth_type;