From patchwork Mon Oct 27 00:16:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Mcquade X-Patchwork-Id: 5155781 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 563BDC11AC for ; Mon, 27 Oct 2014 00:16:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7A74D20272 for ; Mon, 27 Oct 2014 00:16:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A2CBD2017D for ; Mon, 27 Oct 2014 00:16:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751908AbaJ0AQU (ORCPT ); Sun, 26 Oct 2014 20:16:20 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:47076 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808AbaJ0AQT (ORCPT ); Sun, 26 Oct 2014 20:16:19 -0400 Received: by mail-wg0-f42.google.com with SMTP id k14so2510176wgh.13 for ; Sun, 26 Oct 2014 17:16:18 -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; bh=K9JuemXYUPp0f4PZlDP5+hE8KbV5g/F4xSoIBlb40Lc=; b=vAE3i56DNRbUZQg0AqSb1CnsgSTbro8/x7Nbu+7qp5vKC6gMhmpEFdgFXkVYf88MnJ JoM5HWc48/ZnR+R47mCAmLrsTcNl97I0LzpFYl0DAUT6/hOrHjgT86ysyqRyaGOjhvnT QPCsfR4QM6EwP/bbpmlNFWbYFMs3XHTlSBzuJOWhIEpgVZsQXBA1WxAvp618rt0hc3eF jG3H1slAYvvSkjt35ql570n5Xjx1/Vi9cjJTjxossGRwhlZRxb/3wlLZW2ZZpLk5/En7 kl7P01Qh6wElX3MvM7QfDBdVG8Rm2t/odv9MZ93iEHefVeqIrIgDOoLAShOpfxAAN7HZ yG+g== X-Received: by 10.180.187.130 with SMTP id fs2mr17334811wic.24.1414368978370; Sun, 26 Oct 2014 17:16:18 -0700 (PDT) Received: from paul87-SATELLITE-L850D-12P.Home ([78.18.70.101]) by mx.google.com with ESMTPSA id gt7sm10004311wib.18.2014.10.26.17.16.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Oct 2014 17:16:17 -0700 (PDT) From: Paul McQuade To: paulmcquad@gmail.com Cc: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org, gdonald@gmail.com, gregkh@linuxfoundation.org, Jes.Sorensen@redhat.com, Larry.Finger@lwfinger.net Subject: [PATCH 2/2] staging: rtl8723au: core style issue Date: Mon, 27 Oct 2014 00:16:08 +0000 Message-Id: <1414368968-9841-1-git-send-email-paulmcquad@gmail.com> X-Mailer: git-send-email 1.9.1 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 spaces required around % Signed-off-by: Paul McQuade --- drivers/staging/rtl8723au/core/rtw_recv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723au/core/rtw_recv.c b/drivers/staging/rtl8723au/core/rtw_recv.c index 5bc7734..6343d49a 100644 --- a/drivers/staging/rtl8723au/core/rtw_recv.c +++ b/drivers/staging/rtl8723au/core/rtw_recv.c @@ -2381,7 +2381,7 @@ void rtw_signal_stat_timer_hdl23a(unsigned long data) if (!check_fwstate(&adapter->mlmepriv, _FW_UNDER_SURVEY)) { tmp_s = (avg_signal_strength + (_alpha - 1) * recvpriv->signal_strength); - if (tmp_s %_alpha) + if (tmp_s % _alpha) tmp_s = tmp_s / _alpha + 1; else tmp_s = tmp_s / _alpha; @@ -2390,7 +2390,7 @@ void rtw_signal_stat_timer_hdl23a(unsigned long data) tmp_q = (avg_signal_qual + (_alpha - 1) * recvpriv->signal_qual); - if (tmp_q %_alpha) + if (tmp_q % _alpha) tmp_q = tmp_q / _alpha + 1; else tmp_q = tmp_q / _alpha;