From patchwork Thu Jan 21 01:20:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8076251 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 5F04C9F859 for ; Thu, 21 Jan 2016 01:20:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 817D8205F5 for ; Thu, 21 Jan 2016 01:20:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A302020531 for ; Thu, 21 Jan 2016 01:20:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751648AbcAUBUr (ORCPT ); Wed, 20 Jan 2016 20:20:47 -0500 Received: from mail-pa0-f66.google.com ([209.85.220.66]:35926 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751228AbcAUBUq (ORCPT ); Wed, 20 Jan 2016 20:20:46 -0500 Received: by mail-pa0-f66.google.com with SMTP id a20so1009457pag.3 for ; Wed, 20 Jan 2016 17:20:46 -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=+S1LqmmiLJvEzWpO86pvxpg8/m7dksrg4RYr3oFcuMQ=; b=sYAzCAGx7szLGiU/z6VpuvQWvP7mJ4oiqjAC13wcRdGwTf61ZtLBx+o5nBB+xqf+dF uFIvBQKeICdy7i1UpsayUM23oqnKUg4nyazYUjumQ01C6mR+KQwIv9RBHztarJdWXWLt 5c0OZrWlvwnl4w6klwze2oeIK1im/dcZpTsnP8EB/1WW7GMLe2rYanUvyzNjHP9Np2Qz nfEB0qfSaJlHwXUGeqc8Wj00ywcgXv2Rny+5OI0pMXmwuV8lUj2ycG2xWnJv6bQ6OCtr bP5rTL+pR9yqUtbpWUAZ5wkuZlmb5FJWgbq23f84e494GEsUGCOr6JlhKwRELUN/OmGU B59g== 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=+S1LqmmiLJvEzWpO86pvxpg8/m7dksrg4RYr3oFcuMQ=; b=LPsfewv0oIDdr0wL3MUJ5h2n30evmprcJscEfUYCRbiW8GHR+cLhnoKdPk2mk769Xi vT5PRwt57KyJpBVxnY6XsXvGIb3+BsiM1r/8RNEUSmCX9vY1gQlVq3nu++V6WglOv5th qvis8npC+l9F53w6Y7WJNfNDoP3MHqCioHsvgH2vWX1F0r53+pzA/hGyoEGVXhkZPTv8 zBhiSEIyPeh2MAKHPqCsl/RM6aJuCbNb/aKF+Io2v5aIP1AdqvryVfyinQGHC+sdtxTH YbK17aksiJ0ebjJ0qPoyA/r96H4zErm+zg+uAMuNxCrI6MvdetzAghbo/6+IkvYR32oq Adqg== X-Gm-Message-State: ALoCoQmhamBw4kflUqsbgwxV+B0nu3MyWZZB4YVb+H1wyOfdFbvYhfoauVHdW44JkpWHi8DLOKCiCP2LGQA6MGff5QBW5e6mhg== X-Received: by 10.66.140.14 with SMTP id rc14mr57083861pab.65.1453339245776; Wed, 20 Jan 2016 17:20:45 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id s19sm51372596pfs.62.2016.01.20.17.20.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jan 2016 17:20:45 -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/27] staging: wilc1000: rename pvBuffer in struct message Date: Thu, 21 Jan 2016 10:20:05 +0900 Message-Id: <1453339230-1377-2-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1453339230-1377-1-git-send-email-chaehyun.lim@gmail.com> References: <1453339230-1377-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.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 pvBuffer to buf to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_msgqueue.c | 10 +++++----- drivers/staging/wilc1000/wilc_msgqueue.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c index 9b78fcd..a4e612d 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -76,9 +76,9 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle, pstrMessage->u32Length = u32SendBufferSize; pstrMessage->pstrNext = NULL; - pstrMessage->pvBuffer = kmemdup(pvSendBuffer, u32SendBufferSize, - GFP_ATOMIC); - if (!pstrMessage->pvBuffer) { + pstrMessage->buf = kmemdup(pvSendBuffer, u32SendBufferSize, + GFP_ATOMIC); + if (!pstrMessage->buf) { kfree(pstrMessage); return -ENOMEM; } @@ -151,12 +151,12 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle, /* consume the message */ pHandle->u32ReceiversCount--; - memcpy(pvRecvBuffer, pstrMessage->pvBuffer, pstrMessage->u32Length); + memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->u32Length); *pu32ReceivedLength = pstrMessage->u32Length; pHandle->pstrMessageList = pstrMessage->pstrNext; - kfree(pstrMessage->pvBuffer); + kfree(pstrMessage->buf); kfree(pstrMessage); spin_unlock_irqrestore(&pHandle->strCriticalSection, flags); diff --git a/drivers/staging/wilc1000/wilc_msgqueue.h b/drivers/staging/wilc1000/wilc_msgqueue.h index 1a7c652..848ed82 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.h +++ b/drivers/staging/wilc1000/wilc_msgqueue.h @@ -14,7 +14,7 @@ /* Message Queue type is a structure */ struct message { - void *pvBuffer; + void *buf; u32 u32Length; struct message *pstrNext; };