From patchwork Sun Nov 22 09:07:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 7675781 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 841A6BF90C for ; Sun, 22 Nov 2015 09:08:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8766520663 for ; Sun, 22 Nov 2015 09:08:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A8EE920660 for ; Sun, 22 Nov 2015 09:08:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751568AbbKVJIZ (ORCPT ); Sun, 22 Nov 2015 04:08:25 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:34488 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751298AbbKVJIK (ORCPT ); Sun, 22 Nov 2015 04:08:10 -0500 Received: by wmvv187 with SMTP id v187so123340439wmv.1 for ; Sun, 22 Nov 2015 01:08:09 -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=YzGByFo8Jrfc/v4u/BneIPGjrjW4sRxrdPtlU4BfT4c=; b=R6e9k84+b2rM/hfZB+ki/JjEEG7cJKgFJaTi78B2KccB9H+mApQicLYEeiIgGIDGXS 0kR+5qfhnem2EnBATWR4zOwukhxrn6db7vMzhEntZl02GIoTPL2D6RLbr7iYhPNgphHo YhIDZi5O7qarQ/CensMCyW4uH8EaCyK0X1lj7FTc3MPdkFw9GE584bVeNIk+rgu8koL9 gHPVdoFnQDbPQ31SMSnFyN8ZCjvrInlnJsKG0N/t+VvxkUtnwnKP0OAaTpdpEaHy3jFt qU8cETheyxtOu+RUA7fWisD7ONr8+//pajLBzag9QTtTo5lwVmgYjQ2mhARKjQ2hqS2R YNsw== X-Received: by 10.28.138.148 with SMTP id m142mr11668503wmd.79.1448183289116; Sun, 22 Nov 2015 01:08:09 -0800 (PST) Received: from tipsey.3.home (188.31.153.139.threembb.co.uk. [188.31.153.139]) by smtp.gmail.com with ESMTPSA id c13sm7696650wmd.14.2015.11.22.01.08.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Nov 2015 01:08:08 -0800 (PST) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 3/8] staging: vt6655: set_channel replace bResult with ret Date: Sun, 22 Nov 2015 09:07:17 +0000 Message-Id: <1448183242-3397-3-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1448183242-3397-1-git-send-email-tvboxspy@gmail.com> References: <1448183242-3397-1-git-send-email-tvboxspy@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.4 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 Removing camel case. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/channel.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/vt6655/channel.c b/drivers/staging/vt6655/channel.c index d1c9116..9ac1ef9 100644 --- a/drivers/staging/vt6655/channel.c +++ b/drivers/staging/vt6655/channel.c @@ -176,10 +176,10 @@ void vnt_init_bands(struct vnt_private *priv) */ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) { - bool bResult = true; + bool ret = true; if (priv->byCurrentCh == ch->hw_value) - return bResult; + return ret; /* Set VGA to max sensitivity */ if (priv->bUpdateBBVGA && @@ -200,8 +200,8 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) ch->hw_value); priv->byCurrentCh = ch->hw_value; - bResult &= RFbSelectChannel(priv, priv->byRFType, - ch->hw_value); + ret &= RFbSelectChannel(priv, priv->byRFType, + ch->hw_value); /* Init Synthesizer Table */ if (priv->bEnablePSMode) @@ -232,5 +232,5 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) else RFbSetPower(priv, RATE_6M, priv->byCurrentCh); - return bResult; + return ret; }