From patchwork Tue May 5 06:01:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Okash Khawaja X-Patchwork-Id: 6335561 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 755EEBEEE1 for ; Tue, 5 May 2015 06:02:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9DDA92028D for ; Tue, 5 May 2015 06:02:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D20A2013A for ; Tue, 5 May 2015 06:01:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755625AbbEEGB5 (ORCPT ); Tue, 5 May 2015 02:01:57 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:37543 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752153AbbEEGBz (ORCPT ); Tue, 5 May 2015 02:01:55 -0400 Received: by widdi4 with SMTP id di4so132683327wid.0; Mon, 04 May 2015 23:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=VM0tHHQViE0GPDnxDxJ2ST4S4J2LTwtaWW3Vzp4C3zo=; b=HF+a/tPKo1RcdPqFkZbJysqoGWwwbp/N9v37rSwp1KwghZqhnaB60RyVOh6Pg9ZgR0 +w6ybFVEjqoCOH5KTv58aHZ5FMwG0fwyZF/yGhdh9D6zg5rhuihavs8f21YbPrE4gYTB 3jcRf0QRJznXhTkm9XqJh94cBGnFFFaSqOumvBNu5FdqS+zJSGby/Zq5Xfo0WuaRjcUd H310zSpDNCzZQQKKWxCQEoZS/a90FdqySAfgmlNzVt8UxyfBrzgnXjHNqZ6zuTPdnA+K hki4zqbB1vqC2kY5J/8ncqQcnkeivljmmIvtur/IpqPRGF8hhArRHBQiZHHNv9KG59hS 9BwA== X-Received: by 10.194.60.4 with SMTP id d4mr48607229wjr.72.1430805713662; Mon, 04 May 2015 23:01:53 -0700 (PDT) Received: from bytefire-computer ([90.199.116.241]) by mx.google.com with ESMTPSA id ex5sm14402342wib.2.2015.05.04.23.01.52 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 May 2015 23:01:52 -0700 (PDT) Date: Tue, 5 May 2015 07:01:51 +0100 From: Okash Khawaja To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] adm8211: fix checkpatch error for trailing statements on next line Message-ID: <20150505060150.GA2548@bytefire-computer> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 fixes the checkpatch.pl error: ERROR: trailing statements should be on next line More specifically, the fix has been applied to the four occurances of the error listed below. ERROR: trailing statements should be on next line #1101: FILE: drivers/net/wireless/adm8211.c:1101: + case 0x8: reg |= (0x1 << 14); ERROR: trailing statements should be on next line #1103: FILE: drivers/net/wireless/adm8211.c:1103: + case 0x16: reg |= (0x2 << 14); ERROR: trailing statements should be on next line #1105: FILE: drivers/net/wireless/adm8211.c:1105: + case 0x32: reg |= (0x3 << 14); ERROR: trailing statements should be on next line #1107: FILE: drivers/net/wireless/adm8211.c:1107: + default: reg |= (0x0 << 14); Signed-off-by: Okash Khawaja --- drivers/net/wireless/adm8211.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c index f07a618..79e4e5f 100644 --- a/drivers/net/wireless/adm8211.c +++ b/drivers/net/wireless/adm8211.c @@ -1098,14 +1098,18 @@ static void adm8211_hw_init(struct ieee80211_hw *dev) pci_read_config_byte(priv->pdev, PCI_CACHE_LINE_SIZE, &cline); switch (cline) { - case 0x8: reg |= (0x1 << 14); - break; - case 0x16: reg |= (0x2 << 14); - break; - case 0x32: reg |= (0x3 << 14); - break; - default: reg |= (0x0 << 14); - break; + case 0x8: + reg |= (0x1 << 14); + break; + case 0x16: + reg |= (0x2 << 14); + break; + case 0x32: + reg |= (0x3 << 14); + break; + default: + reg |= (0x0 << 14); + break; } }