From patchwork Tue Jan 30 16:50:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Singh X-Patchwork-Id: 10192043 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A84AE6020C for ; Tue, 30 Jan 2018 16:51:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97BBC1FFDA for ; Tue, 30 Jan 2018 16:51:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C10C205F6; Tue, 30 Jan 2018 16:51:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D7E41FFDA for ; Tue, 30 Jan 2018 16:51:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752472AbeA3QvN (ORCPT ); Tue, 30 Jan 2018 11:51:13 -0500 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:11869 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751737AbeA3QvM (ORCPT ); Tue, 30 Jan 2018 11:51:12 -0500 X-IronPort-AV: E=Sophos;i="5.46,435,1511852400"; d="scan'208";a="8723362" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Jan 2018 09:51:13 -0700 Received: from ajaysk-VirtualBox.mchp-main.com (10.10.76.4) by chn-sv-exch07.mchp-main.com (10.10.76.108) with Microsoft SMTP Server id 14.3.352.0; Tue, 30 Jan 2018 09:51:11 -0700 From: Ajay Singh To: CC: , , , , , , Ajay Singh Subject: [PATCH 2/7] staging: wilc1000: rename Handle_DelAllSta() and its variable using camelCase Date: Tue, 30 Jan 2018 22:20:28 +0530 Message-ID: <1517331033-5718-3-git-send-email-ajay.kathat@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517331033-5718-1-git-send-email-ajay.kathat@microchip.com> References: <1517331033-5718-1-git-send-email-ajay.kathat@microchip.com> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix "Avoid camelCase" issue reported by checkpatch.pl script. Signed-off-by: Ajay Singh Reviewed-by: Claudiu Beznea --- drivers/staging/wilc1000/host_interface.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 8f8e727..f0168e3 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -2123,34 +2123,34 @@ static void Handle_AddStation(struct wilc_vif *vif, kfree(wid.val); } -static void Handle_DelAllSta(struct wilc_vif *vif, - struct del_all_sta *pstrDelAllStaParam) +static void handle_del_all_sta(struct wilc_vif *vif, + struct del_all_sta *param) { s32 result = 0; struct wid wid; - u8 *pu8CurrByte; + u8 *curr_byte; u8 i; - u8 au8Zero_Buff[6] = {0}; + u8 zero_buff[6] = {0}; wid.id = (u16)WID_DEL_ALL_STA; wid.type = WID_STR; - wid.size = (pstrDelAllStaParam->assoc_sta * ETH_ALEN) + 1; + wid.size = (param->assoc_sta * ETH_ALEN) + 1; - wid.val = kmalloc((pstrDelAllStaParam->assoc_sta * ETH_ALEN) + 1, GFP_KERNEL); + wid.val = kmalloc((param->assoc_sta * ETH_ALEN) + 1, GFP_KERNEL); if (!wid.val) goto ERRORHANDLER; - pu8CurrByte = wid.val; + curr_byte = wid.val; - *(pu8CurrByte++) = pstrDelAllStaParam->assoc_sta; + *(curr_byte++) = param->assoc_sta; for (i = 0; i < MAX_NUM_STA; i++) { - if (memcmp(pstrDelAllStaParam->del_all_sta[i], au8Zero_Buff, ETH_ALEN)) - memcpy(pu8CurrByte, pstrDelAllStaParam->del_all_sta[i], ETH_ALEN); + if (memcmp(param->del_all_sta[i], zero_buff, ETH_ALEN)) + memcpy(curr_byte, param->del_all_sta[i], ETH_ALEN); else continue; - pu8CurrByte += ETH_ALEN; + curr_byte += ETH_ALEN; } result = wilc_send_config_pkt(vif, SET_CFG, &wid, 1, @@ -2626,7 +2626,7 @@ static void host_if_work(struct work_struct *work) break; case HOST_IF_MSG_DEL_ALL_STA: - Handle_DelAllSta(msg->vif, &msg->body.del_all_sta_info); + handle_del_all_sta(msg->vif, &msg->body.del_all_sta_info); break; case HOST_IF_MSG_SET_TX_POWER: