From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752615AbdLFR4V (ORCPT ); Wed, 6 Dec 2017 12:56:21 -0500 Received: from smtprelay0200.hostedemail.com ([216.40.44.200]:34735 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752079AbdLFR4P (ORCPT ); Wed, 6 Dec 2017 12:56:15 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::,RULES_HIT:41:152:355:379:541:599:800: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:1801:2393:2553:2559:2562:3138:3139:3140:3141:3142:3352:3622:3870:3872:3876:4250:4321:4605:5007:6117:6119:7903:8957:10004:10400:10848:11026:11232:11658:11914:12043:12296:12679:12740:12895:13069:13311:13357:13894:13972:14181:14659:14721:21080:21451: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: cork07_8d80de093573d X-Filterd-Recvd-Size: 2544 Message-ID: <1512582971.960.6.camel@perches.com> Subject: Re: [PATCH 1/3] crypto: exynos - Support Exynos5250+ SoCs From: Joe Perches To: Krzysztof Kozlowski , =?UTF-8?Q?=C5=81ukasz?= Stelmach , Andrew Morton Cc: robh+dt@kernel.org, Stephan Mueller , Herbert Xu , "David S. Miller" , Kukjin Kim , linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Szyprowski , =?UTF-8?Q?Bart=C5=82omiej_?= =?UTF-8?Q?=C5=BBo=C5=82nierkiewicz?= Date: Wed, 06 Dec 2017 09:56:11 -0800 In-Reply-To: References: <87bmjc9dlr.fsf%l.stelmach@samsung.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.1-1 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 On Wed, 2017-12-06 at 15:05 +0100, Krzysztof Kozlowski wrote: > On Wed, Dec 6, 2017 at 2:42 PM, Łukasz Stelmach wrote: > > It was <2017-12-05 wto 14:34>, when Krzysztof Kozlowski wrote: > > > On Tue, Dec 5, 2017 at 1:35 PM, Łukasz Stelmach wrote: > > > > Add support for PRNG in Exynos5250+ SoCs. [] > > > > diff --git a/drivers/crypto/exynos-rng.c b/drivers/crypto/exynos-rng.c [] > > > > @@ -300,7 +323,10 @@ static int exynos_rng_probe(struct platform_device *pdev) > > > > dev_err(&pdev->dev, > > > > "Couldn't register rng crypto alg: %d\n", ret); > > > > exynos_rng_dev = NULL; > > > > - } > > > > + } else > > > > > > Missing {} around else clause. Probably checkpatch should point it. > > > > It doesn't. Fixed. checkpatch does report this if using --strict $ ./scripts/checkpatch.pl --strict - CHECK: Unbalanced braces around else statement #119: FILE: drivers/crypto/exynos-rng.c:326: + } else Arguably, this should always be reported.