Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754206AbcCMTbp (ORCPT ); Sun, 13 Mar 2016 15:31:45 -0400 Received: from smtprelay0098.hostedemail.com ([216.40.44.98]:59909 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752599AbcCMTbh (ORCPT ); Sun, 13 Mar 2016 15:31:37 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3866:3867:3868:3871:3872:3874:4321:4384:5007:6261:7903:8957:10004:10400:10848:11026:11232:11473:11658:11914:12296:12517:12519:12740:13069:13311:13357:13439:13894:14659:14721:21080:21088:30012:30054:30070:30083:30091,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,LFtime:2,LUA_SUMMARY:none X-HE-Tag: neck96_4800345c78d4a X-Filterd-Recvd-Size: 2046 Message-ID: <1457897493.11972.55.camel@perches.com> Subject: Re: [PATCH 2/2] isdn: hisax: isac: fixed code style issues. From: Joe Perches To: Cosmin-Gabriel Samoila , isdn@linux-pingi.de Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 13 Mar 2016 12:31:33 -0700 In-Reply-To: <1457896913-5406-1-git-send-email-gabrielcsmo@gmail.com> References: <1457896913-5406-1-git-send-email-gabrielcsmo@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1166 Lines: 42 On Sun, 2016-03-13 at 21:21 +0200, Cosmin-Gabriel Samoila wrote: > Fixed errors and warnings reported by checkpatch.pl. Generally it's better to send multiple patches that each change a specific type of style defect. As is, this patch changes object code. Fixing style inconsistency should not do that. > diff --git a/drivers/isdn/hisax/isac.c b/drivers/isdn/hisax/isac.c [] > @@ -24,9 +24,8 @@ > ?#define DBUSY_TIMER_VALUE 80 > ?#define ARCOFI_USE 1 > ? > -static char *ISACVer[] = > -{"2086/2186 V1.1", "2085 B1", "2085 B2", > - "2085 V2.3"}; > +static char *ISACVer[] = {"2086/2186 V1.1", "2085 B1", "2085 B2", > +"2085 V2.3"}; Most common kernel style would use: static const char *ISACVer[] = { "2086/2186 V1.1", "2085 B1", "2085 B2", "2085 V2.3" }; > @@ -251,11 +252,12 @@ isac_interrupt(struct IsdnCardState *cs, u_char val) > ? cs->tx_skb = NULL; > ? } > ? } > - if ((cs->tx_skb = skb_dequeue(&cs->sq))) { > + cs->tx_skb = skb_dequeue(&cs->sq); > + if (cs->tx_skb) { > ? cs->tx_cnt = 0; > ? isac_fill_fifo(cs); > - } else > - schedule_event(cs, D_XMTBUFREADY); > + } > + schedule_event(cs, D_XMTBUFREADY); This changes object code.