From patchwork Fri Feb 12 14:04:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8291941 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 667709F6E4 for ; Fri, 12 Feb 2016 14:05:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 83342203F7 for ; Fri, 12 Feb 2016 14:05:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 93566203DA for ; Fri, 12 Feb 2016 14:04:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752827AbcBLOE5 (ORCPT ); Fri, 12 Feb 2016 09:04:57 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:32845 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752849AbcBLOEy (ORCPT ); Fri, 12 Feb 2016 09:04:54 -0500 Received: by mail-pf0-f194.google.com with SMTP id c10so4036266pfc.0 for ; Fri, 12 Feb 2016 06:04:54 -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=JBGCg2jY+BP892YAqGrXKubCbo+qAu2i9F2YJStH8KU=; b=Lw8XDgnzaRVYgzokPzI3dKD0f/xuYDaIVUQzKmPdfVCZgJejE3Qcs3V8GIakeuOqFA zm0jpPxfk7jxBR5xRbdLPr2S6fmH7obQbNXpt28P3XvLT7YR/Qd+FGEbY/SqG0ZgfgKk Zu6ToQLrp/tthuiUqAkIr4UsebCVqYXviGyyJI+8GLynxvlZhtA9s7H8t5rWQN9lzoXh TchO9P2wULcFOktUx4ayTsAD31JZQ+Ulb4p/M1YSVm7TFs9ataxBAVwbn/+jSVvalfPE mwdtA5TOKf0uqYNRKBsrUI/25I2QV3Y+BtzmGkvvcHFYpTDih7GsRnubbHLSDHNuVg2X Qw3w== 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=JBGCg2jY+BP892YAqGrXKubCbo+qAu2i9F2YJStH8KU=; b=bhHlkpP38SEPjjy5KaOnUh2TzZbt5BWVqXDDZp37dhydbCujuI2SJf5CA0pOeIAete yr8W7qvVuluLgoGnYT368u+u7b8muD2o/d2fz16gULUIhXHNkjjududg4yINPN3Ns9Nt cl7I0oK/FUtHUJTrAMJf7kA29dGe0Q3R0J8sXRmHnd70Jq+WxnHRrBjyuXfa/LpEZBrw KJUWt8gtlzTu7J/wX88MuU61dZFM6tlD4xBrSxe7ApqTxNvObEEO25sgydPamCGrNCio QCj3zQzXpi4SSZFDSm1moFKfysLenVH+cEdfhmMpwedEJzTFNeddNeE44OvrTDqRNpxx JJng== X-Gm-Message-State: AG10YOS1xl5dD7Fw6IrY+xOZ/0TepHeydUJgNhUnmCf0VIBBCX4I/xbijI/H1H/YZthReg== X-Received: by 10.98.9.219 with SMTP id 88mr2472660pfj.0.1455285894362; Fri, 12 Feb 2016 06:04:54 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id u64sm19814147pfa.86.2016.02.12.06.04.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Feb 2016 06:04:53 -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 02/11] staging: wilc1000: rename au8bssid in struct found_net_info Date: Fri, 12 Feb 2016 23:04:38 +0900 Message-Id: <1455285887-29946-2-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 au8bssid to bssid to remove au8 prefix. 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 | 8 ++++---- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index ab02159..60c1827 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -1352,9 +1352,9 @@ static s32 Handle_RcvdNtwrkInfo(struct wilc_vif *vif, } for (i = 0; i < hif_drv->usr_scan_req.rcvd_ch_cnt; i++) { - if ((hif_drv->usr_scan_req.net_info[i].au8bssid) && + if ((hif_drv->usr_scan_req.net_info[i].bssid) && (pstrNetworkInfo->bssid)) { - if (memcmp(hif_drv->usr_scan_req.net_info[i].au8bssid, + if (memcmp(hif_drv->usr_scan_req.net_info[i].bssid, pstrNetworkInfo->bssid, 6) == 0) { if (pstrNetworkInfo->rssi <= hif_drv->usr_scan_req.net_info[i].s8rssi) { goto done; @@ -1371,9 +1371,9 @@ static s32 Handle_RcvdNtwrkInfo(struct wilc_vif *vif, if (hif_drv->usr_scan_req.rcvd_ch_cnt < MAX_NUM_SCANNED_NETWORKS) { hif_drv->usr_scan_req.net_info[hif_drv->usr_scan_req.rcvd_ch_cnt].s8rssi = pstrNetworkInfo->rssi; - if (hif_drv->usr_scan_req.net_info[hif_drv->usr_scan_req.rcvd_ch_cnt].au8bssid && + if (hif_drv->usr_scan_req.net_info[hif_drv->usr_scan_req.rcvd_ch_cnt].bssid && pstrNetworkInfo->bssid) { - memcpy(hif_drv->usr_scan_req.net_info[hif_drv->usr_scan_req.rcvd_ch_cnt].au8bssid, + memcpy(hif_drv->usr_scan_req.net_info[hif_drv->usr_scan_req.rcvd_ch_cnt].bssid, pstrNetworkInfo->bssid, 6); hif_drv->usr_scan_req.rcvd_ch_cnt++; diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index bfa4a41..e4729e3 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -144,7 +144,7 @@ enum cfg_param { }; struct found_net_info { - u8 au8bssid[6]; + u8 bssid[6]; s8 s8rssi; };