Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752954AbdCAUhe (ORCPT ); Wed, 1 Mar 2017 15:37:34 -0500 Received: from smtprelay0019.hostedemail.com ([216.40.44.19]:34483 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751767AbdCAUhb (ORCPT ); Wed, 1 Mar 2017 15:37:31 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:541:599:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3874:4321:5007:7875:8957:10004:10400:10848:11026:11232:11658:11914:12043:12679:12740:12760:12895:13069:13255:13311:13357:13439:14096:14097:14181:14659:14721:21060:21080:21451:30054:30070:30090: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: ghost32_1d2b44ff70e60 X-Filterd-Recvd-Size: 2422 Message-ID: <1488399199.20731.9.camel@perches.com> Subject: Re: [Outreachy kernel] [PATCH] staging: speakup: Comparison to NULL could be written From: Joe Perches To: Julia Lawall , Arushi Singhal Cc: w.d.hubbs@gmail.com, Chris Brannon , Kirk Reiser , Samuel Thibault , Greg Kroah-Hartman , speakup@linux-speakup.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com Date: Wed, 01 Mar 2017 12:13:19 -0800 In-Reply-To: References: <20170301192140.GA30680@arushi-HP-Pavilion-Notebook> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.3-0ubuntu0.1 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: 1247 Lines: 34 On Wed, 2017-03-01 at 20:58 +0100, Julia Lawall wrote: > > On Thu, 2 Mar 2017, Arushi Singhal wrote: > > > Fixed coding style for null comparisons in speakup driver to be more > > consistant with the rest of the kernel coding style. And Arushi, please use checkpatch on your proposed patches before sending them. $ ./scripts/checkpatch.pl ~/staging-speakup-Comparison-to-NULL-could-be-written.patch --nosummary WARNING: 'consistant' may be misspelled - perhaps 'consistent'? #18: consistant with the rest of the kernel coding style. CHECK: Avoid CamelCase: #138: FILE: drivers/staging/speakup/main.c:1512: + if (!synth || up_flag || spk_shut_up || cursor_track == CT_Off) { ERROR: space prohibited before that close parenthesis ')' #147: FILE: drivers/staging/speakup/main.c:1708: + if (spk_shut_up || !synth ) { ERROR: space prohibited before that close parenthesis ')' #156: FILE: drivers/staging/speakup/main.c:1725: + if ((vc->vc_num != fg_console) || spk_shut_up || !synth ) ERROR: space prohibited before that close parenthesis ')' #183: FILE: drivers/staging/speakup/main.c:1813: + if (!p_header ) ERROR: space prohibited before that close parenthesis ')' #210: FILE: drivers/staging/speakup/main.c:2068: + if (!synth )