Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992648AbbEENvC (ORCPT ); Tue, 5 May 2015 09:51:02 -0400 Received: from smtprelay0065.hostedemail.com ([216.40.44.65]:42811 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1946088AbbEENu4 (ORCPT ); Tue, 5 May 2015 09:50:56 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3870:3872:3876:4321:5007:6261:7974:10004:10400:10848:11026:11232:11473:11658:11914:12043:12438:12517:12519:12555:12740:13069:13161:13229:13255:13311:13357:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: sleep70_7c2c3f31bae43 X-Filterd-Recvd-Size: 1736 Message-ID: <1430833852.7191.7.camel@perches.com> Subject: Re: [PATCH] adm8211: fix checkpatch errors for indentation and new line around switch-case From: Joe Perches To: Peter Rosin Cc: Okash Khawaja , kvalo@codeaurora.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 05 May 2015 06:50:52 -0700 In-Reply-To: <5548B192.8020808@lysator.liu.se> References: <5548B192.8020808@lysator.liu.se> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1061 Lines: 38 On Tue, 2015-05-05 at 14:03 +0200, Peter Rosin wrote: > > diff --git 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; > > } > > } > > > > Those 0x16/0x32 hexadecimal case-selectors looking suspiciously like > decimal bits need a comment if they are in fact correct, which I doubt. Good spot. As it's testing PCI_CACHE_LINE_SIZE, they seem very much broken. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/