From patchwork Mon Feb 29 01:07:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Copeland X-Patchwork-Id: 8448301 X-Patchwork-Delegate: kvalo@adurom.com 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 30763C0553 for ; Mon, 29 Feb 2016 01:08:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6892A20279 for ; Mon, 29 Feb 2016 01:08:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 97E7D20272 for ; Mon, 29 Feb 2016 01:08:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755462AbcB2BI1 (ORCPT ); Sun, 28 Feb 2016 20:08:27 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:34356 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752619AbcB2BIY (ORCPT ); Sun, 28 Feb 2016 20:08:24 -0500 Received: by mail-qk0-f194.google.com with SMTP id u128so4851341qkh.1 for ; Sun, 28 Feb 2016 17:08:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobcopeland-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6wBMEvQrltIoHhL3NKMBAEhAQ/5o2N/vc79rjiRsXEs=; b=rCi+5IVmb0fl78kXw7vV+Ggg/IWJvg2a9T4ZKrXOsJUzbzTNlX/bn97aXaxjNLlLVA NOpjZ/UiL5nGQC1gAxdZN1ef6Ej3PCcILaROkEdC5mkidv8HblrDPfT9PVfq5KHDKWsx cP3nbQIo2p1fSI0ZqRzrm4YXmOjQbl+lG5lC6JM6nI8NL5OPuUCTB+ztDRhnCxcOgN7S ZHIEEbAAV0FWkb1DwHLLQvE3jVqH8gsCHQ7QMKK1CN+gklKINM9S4N7Gcm3rXNZ9i/Bw 0FPlIUeadCcIY1FCWG/AhRXnTBjCSHmdwUFRQKEDwmWwf1sG04/WUf5wIwi1KkHf7XXE mLIg== 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=6wBMEvQrltIoHhL3NKMBAEhAQ/5o2N/vc79rjiRsXEs=; b=l+Zw611kCBJH6qz+K2cCAXDEv9KTASJdpsD/G7YAs838E1YGzsVtUS8mOqk3R+hFht XI7Srz/q9+lY7AhymqwC3rUX5KOIJwzvsORv6iNihjuPxNSVhTQ9CbhSFJ9cOO4lJDO+ LFxX2D3e9Yt3bpOooi1IwkdgUpGZuQe2xKfZQHanTbe+KzxkW7bdWWZT9UV5/O0l58YP TFCLRYy/6KwVYKPg46K1Vh6OizwVnhohgMj9PRfss6ps+gBJH04TBnk2c/8uZ1MuA+20 Lf+/22PBFP+6Q0xZfUMaNKDrhS2CzD+MW8QZOrUrrugwHz6QNQN2pOgOfiWgBl7Z6i5o h2/w== X-Gm-Message-State: AD7BkJL5oQZGez/XIEW8/tVBIQ4ksCLhqFXvIPMRcJAt3regQenc9sOfuT021cTAFTux5w== X-Received: by 10.55.80.86 with SMTP id e83mr15920549qkb.91.1456708103516; Sun, 28 Feb 2016 17:08:23 -0800 (PST) Received: from hash ([2001:470:1d:6db:230:48ff:fe9d:9c89]) by smtp.gmail.com with ESMTPSA id e11sm9977607qkb.39.2016.02.28.17.08.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Feb 2016 17:08:22 -0800 (PST) Received: from glass.lan ([192.168.1.51] helo=glass) by hash with esmtp (Exim 4.84) (envelope-from ) id 1aaCJr-0006ko-Ve; Sun, 28 Feb 2016 20:08:15 -0500 Received: from bob by glass with local (Exim 4.86) (envelope-from ) id 1aaCJx-00057l-JD; Sun, 28 Feb 2016 20:08:21 -0500 From: Bob Copeland To: linux-wireless@vger.kernel.org Cc: Bob Copeland Subject: [PATCH 2/3] ath9k: fix a misleading indentation Date: Sun, 28 Feb 2016 20:07:56 -0500 Message-Id: <1456708077-19652-2-git-send-email-me@bobcopeland.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1456708077-19652-1-git-send-email-me@bobcopeland.com> References: <1456708077-19652-1-git-send-email-me@bobcopeland.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_SIGNED, 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 These lines belong inside the if-statement above, not in the main body of the switch. Found by smatch. Signed-off-by: Bob Copeland --- drivers/net/wireless/ath/ath9k/ar9003_phy.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c index 201425e7f9cb..3e011f84211f 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c @@ -1332,11 +1332,11 @@ skip_ws_det: chan->channel, aniState->mrcCCK ? "on" : "off", is_on ? "on" : "off"); - if (is_on) - ah->stats.ast_ani_ccklow++; - else - ah->stats.ast_ani_cckhigh++; - aniState->mrcCCK = is_on; + if (is_on) + ah->stats.ast_ani_ccklow++; + else + ah->stats.ast_ani_cckhigh++; + aniState->mrcCCK = is_on; } break; }