From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH 1/3] crypto: exynos - Support Exynos5250+ SoCs Date: Wed, 06 Dec 2017 09:56:11 -0800 Message-ID: <1512582971.960.6.camel@perches.com> References: <87bmjc9dlr.fsf%l.stelmach@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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?= To: Krzysztof Kozlowski , =?UTF-8?Q?=C5=81ukasz?= Stelmach , Andrew Morton Return-path: 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 In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: 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.