From patchwork Sun May 3 10:42:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Okash Khawaja X-Patchwork-Id: 6320791 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 CA6659F1C2 for ; Sun, 3 May 2015 10:42:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DFFC5203B8 for ; Sun, 3 May 2015 10:42:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 026A9203AF for ; Sun, 3 May 2015 10:42:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752087AbbECKmi (ORCPT ); Sun, 3 May 2015 06:42:38 -0400 Received: from mail-wg0-f54.google.com ([74.125.82.54]:34463 "EHLO mail-wg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751062AbbECKmf (ORCPT ); Sun, 3 May 2015 06:42:35 -0400 Received: by wgso17 with SMTP id o17so125819516wgs.1; Sun, 03 May 2015 03:42:34 -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=L71iU9qilAsbwPHciFtbSSH6vSbI9qxog3dzXhpkW6IHilrjBw795E7+t/K7itFD0m JV1eO3XJduGyXuXR5UrZMPHxU/AMG8SvTFnPQv+i1CaaNUU9pnCgJ+NqlAOd3Djwl4Oo vo5vHugOVrh6utz28Laidp1ct3rfFDX4IljaG6BF90DXBsYm8//Kan6VvdbkmdHX/mn9 t++gowufgFJ4DPKqsmG3zeKQkUMheGFfuaA6z0iq63Tx9RINybbx+ogoZJz+geLiWo3w mLCXQhcC/KE9Oh1wm1aDZE0xhzNAuYvK/EDT+feDUMWT93ZYkFeC/mmtncyLxGGrocrw tcNQ== X-Received: by 10.180.77.195 with SMTP id u3mr10985318wiw.30.1430649754181; Sun, 03 May 2015 03:42:34 -0700 (PDT) Received: from bytefire-computer ([90.199.116.241]) by mx.google.com with ESMTPSA id l6sm15563052wjz.4.2015.05.03.03.42.32 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 03 May 2015 03:42:33 -0700 (PDT) Date: Sun, 3 May 2015 11:42:31 +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] staging: adm8211: fix checkpatch error for trailing statements on next line Message-ID: <20150503104231.GA3607@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; } }