From patchwork Mon Apr 4 11:04:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8739971 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 F05B69F38C for ; Mon, 4 Apr 2016 11:05:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 71FC720212 for ; Mon, 4 Apr 2016 11:05:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8780C20204 for ; Mon, 4 Apr 2016 11:05:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755055AbcDDLF2 (ORCPT ); Mon, 4 Apr 2016 07:05:28 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:36318 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753410AbcDDLF0 (ORCPT ); Mon, 4 Apr 2016 07:05:26 -0400 Received: by mail-pa0-f67.google.com with SMTP id 1so19880080pal.3 for ; Mon, 04 Apr 2016 04:05:26 -0700 (PDT) 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=1f0pox/c50eniC0eVCS1SfxIKa7CiVCfXrBUypqZ5QU=; b=XYLWGeoYaKBh2/rtIMo5jYNE//WADe336gxKrKqqD3TE6O/iFrfAQ2gXYdjijCkeLI CE8Xohi/lkO9FClwLGY8W50w6sWp97YL9HToAknHPokoplaFQO4E1wgi/WVnUBs1jlFc ytkbmz4GPVbb/k9U2CfXBAZtrRoaGxnVdnHxpeUs2vbZHc6Xi7xEN8UZGy7XgIG/a2hG npMhoEuZ5JqBadkgAf6pmiCIbou/EvZ2iTZwv2fG0hTDlqojEuD3nss0pWtOy1KwfOrC 3NeMP5gtyDwij0JH7iC9RT2obuGsD2m+FWAGpgMIUrD2EaLbqNXAlGTQ04yAMAq/VmW+ kPkA== 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=1f0pox/c50eniC0eVCS1SfxIKa7CiVCfXrBUypqZ5QU=; b=Rozg7wpl1uP6bA9d4he1Hm0v0+Mw1/Pg4rJ3r3W5f/HvH9YxZk73kmX70gCLXqjchW mfiYQQ9hutUgs8vfJSP2lGl2gQWIPrMdrWDd+L0bCoTYzlHMD3ive0NBn/T9jc+zoe5f k4Hm85fnC2FZz+VDPBLVTQnT7iYFNWRCjJLlkhcLqcbBBBC09F3Q9TuAlvi11HDxKBCR FjCFWOLxU26NvRVoOp27isaH1KHFiC83iChrOMWn9S+X/zLpI0j8xVNYMqbvJ4WGpYuY HIYmHNyGmC4dMCJJywAFPpjJg08H6i1NkldsxT8iqNt07DwYWs1TkXQw9Wk0mCDn2Rlo Ob4g== X-Gm-Message-State: AD7BkJKESNrBHnfdhIytCLIfpzW70xwGFqYkIWhSebUOz6+1WKTJzjQjknFJJx+x6zzsQw== X-Received: by 10.66.191.202 with SMTP id ha10mr52624970pac.8.1459767926197; Mon, 04 Apr 2016 04:05:26 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 85sm38721469pfl.18.2016.04.04.04.05.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Apr 2016 04:05:25 -0700 (PDT) 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 8/8] staging: wilc1000: rename pu8Buffer in handle_scan Date: Mon, 4 Apr 2016 20:04:50 +0900 Message-Id: <1459767890-9709-8-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.8.0 In-Reply-To: <1459767890-9709-1-git-send-email-chaehyun.lim@gmail.com> References: <1459767890-9709-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=-7.8 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 pu8Buffer to buffer to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index a5f109a..1fe811f 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -737,7 +737,7 @@ static s32 handle_scan(struct wilc_vif *vif, struct scan_attr *scan_info) struct wid wid_list[5]; u32 index = 0; u32 i; - u8 *pu8Buffer; + u8 *buffer; u8 valuesize = 0; u8 *pu8HdnNtwrksWidVal = NULL; struct host_if_drv *hif_drv = vif->hif_drv; @@ -768,14 +768,14 @@ static s32 handle_scan(struct wilc_vif *vif, struct scan_attr *scan_info) pu8HdnNtwrksWidVal = kmalloc(valuesize + 1, GFP_KERNEL); wid_list[index].val = pu8HdnNtwrksWidVal; if (wid_list[index].val) { - pu8Buffer = wid_list[index].val; + buffer = wid_list[index].val; - *pu8Buffer++ = scan_info->hidden_network.n_ssids; + *buffer++ = scan_info->hidden_network.n_ssids; for (i = 0; i < scan_info->hidden_network.n_ssids; i++) { - *pu8Buffer++ = scan_info->hidden_network.net_info[i].ssid_len; - memcpy(pu8Buffer, scan_info->hidden_network.net_info[i].ssid, scan_info->hidden_network.net_info[i].ssid_len); - pu8Buffer += scan_info->hidden_network.net_info[i].ssid_len; + *buffer++ = scan_info->hidden_network.net_info[i].ssid_len; + memcpy(buffer, scan_info->hidden_network.net_info[i].ssid, scan_info->hidden_network.net_info[i].ssid_len); + buffer += scan_info->hidden_network.net_info[i].ssid_len; } wid_list[index].size = (s32)(valuesize + 1);