Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1565998img; Tue, 19 Mar 2019 10:20:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxod9GSqGSz0xVZgIZkA+fDtLodkusi2HJAfE0bs7Ba2Ut6T4YQA8LzGCs4tmONhsnRbMsv X-Received: by 2002:aa7:8c97:: with SMTP id p23mr3068024pfd.229.1553016049005; Tue, 19 Mar 2019 10:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553016048; cv=none; d=google.com; s=arc-20160816; b=qH2ckr6PSeS/EtUTdb5xZrUNOWDCBRtXPgAhwxDSGZp92+jcnMoRdKJ9A7yeK7RMWy aLxPqVre4J1v0m9pnVaG0MYwU5/JZZern+xIfYBqedqDnpTtyt8mbkJUdZQbWKMNVG0w zF5M9YGbWs+UuKoZdxWYHjkvALhWfvAd+D3PsM+JdSbCBUz64qy75fbjTZslsx9Nvq87 1Vw9fvPve1PDdaByvC8CaE8HED3yYj4piiliWD5IlIJdAYBFrXs7oEz5AFq3wtBonm+X V/G10chaGd3MVV4kymtkgATsoRDAPTvT2YtIpz0ln8FoQ1vgzGI7lQ4ban9NHOUF8EbE 6AUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=KN2rptfK6eOv7Feh66kBHLw+IYOqipMz7Q78VnuFN9U=; b=xKvbhKZHnAPB99WTkSnGuVpJEk25EbIJ+bnWEg4Awh92A3Fd73UncMsgHLSKzG/jkz Wszp1pV0aBNsYWtlXFuAqtUvH0QkxMXwWONvPcLdDFjhPdsUqmY9MobgJu2Qt5rbChf6 0XHyxp0q6Vide+mqJZSDC8ZN5cTstMN4lwwWzoszyXe3ZnpfPXLeead/7IrpOAnibv8J /9ArzrS2DhM3Y7/bT8lKMDoA+mrubhafIl5+3mPmEC3S4RiImcND2s/s6l3R+tpXuZbL 8TUoG79he5UZucruXX19mainvvNy226R/HFMe29dS9QIRE+1/w6eeWnMGe1i64s88jWy ZGNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o61si13203745pld.280.2019.03.19.10.20.33; Tue, 19 Mar 2019 10:20:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727771AbfCSRTf (ORCPT + 99 others); Tue, 19 Mar 2019 13:19:35 -0400 Received: from smtprelay0121.hostedemail.com ([216.40.44.121]:54257 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727194AbfCSRTf (ORCPT ); Tue, 19 Mar 2019 13:19:35 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 94C3319B2A; Tue, 19 Mar 2019 17:19:33 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3871:3872:3873:3874:4321:4605:5007:6119:6120:7901:7903:10004:10400:10848:11026:11232:11658:11914:12048:12740:12760:12895:13069:13255:13311:13357:13439:14096:14097:14659:21080:21619:30012:30054:30070:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: wave73_8d7d3ab736326 X-Filterd-Recvd-Size: 1729 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Tue, 19 Mar 2019 17:19:32 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2 19/19] locking/lockdep: Change if to else-if when checking bfs errors From: Joe Perches To: Bart Van Assche , Yuyang Du , peterz@infradead.org, will.deacon@arm.com, mingo@kernel.org Cc: ming.lei@redhat.com, linux-kernel@vger.kernel.org Date: Tue, 19 Mar 2019 10:19:31 -0700 In-Reply-To: <1553012967.152266.48.camel@acm.org> References: <20190318085733.3143-1-duyuyang@gmail.com> <20190318085733.3143-20-duyuyang@gmail.com> <1553012967.152266.48.camel@acm.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-03-19 at 09:29 -0700, Bart Van Assche wrote: > On Mon, 2019-03-18 at 16:57 +0800, Yuyang Du wrote: > > - if (ret < 0) { > > + if (unlikely(ret < 0)) { > > print_bfs_bug(ret); > > return 0; > > } > > - if (ret == 1) > > + else if (ret == 1) > > return ret; > > Have you verified this patch series with checkpatch? Checkpatch should have > reported that you are changing code that conforms to the coding style into > code that does not conform to the kernel coding style. Checkpatch should have > reported the following: > > "else is not generally useful after a break or return" checkpatch just ain't that smart. You're welcome to try to improve it.