Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753288AbdHWCeF (ORCPT ); Tue, 22 Aug 2017 22:34:05 -0400 Received: from smtprelay0029.hostedemail.com ([216.40.44.29]:39199 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753084AbdHWCeC (ORCPT ); Tue, 22 Aug 2017 22:34:02 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1538:1593:1594:1711:1714:1730:1747:1777:1792:2393:2553:2559:2562:2693:2828:3138:3139:3140:3141:3142:3173:3351:3622:3865:3866:3867:3871:3872:3873:3874:4250:4321:5007:7576:10004:10400:10848:11232:11658:11914:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21451:21611:21627:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: metal00_5bd0d821d9662 X-Filterd-Recvd-Size: 1461 Message-ID: <1503455625.6933.12.camel@perches.com> Subject: Re: [PATCH] staging: fsl-mc: be consistent when checking strcmp() returns From: Joe Perches To: Greg KH , laurentiu.tudor@nxp.com Cc: stuyoder@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, agraf@suse.de, ioana.ciornei@nxp.com, linux-arm-kernel@lists.infradead.org Date: Tue, 22 Aug 2017 19:33:45 -0700 In-Reply-To: <20170823014031.GA14400@kroah.com> References: <20170817115504.4308-1-laurentiu.tudor@nxp.com> <20170823014031.GA14400@kroah.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 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: 529 Lines: 14 On Tue, 2017-08-22 at 18:40 -0700, Greg KH wrote: > On Thu, Aug 17, 2017 at 02:55:04PM +0300, laurentiu.tudor@nxp.com wrote: > > From: Laurentiu Tudor > > > > Throughout the driver we use == 0 / != 0 to check strcmp() returns except > > this place, so fix it. > > You will just get someone else fixing it as it is not what checkpatch > recommends, so just leave it as-is please. No. That's not correct. checkpatch does not make a recommendation about style use with the strcmp family of functions.