Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp380206pxk; Thu, 3 Sep 2020 02:05:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXQMXVGq7becZD04EEbXurHOWGXG9M1T8CyLUkXuHPod0ks9+Lzrrbx0vreg0tpkTLQH6d X-Received: by 2002:aa7:d40f:: with SMTP id z15mr2038856edq.247.1599123913917; Thu, 03 Sep 2020 02:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599123913; cv=none; d=google.com; s=arc-20160816; b=hAs6uKp1cypVZJ/4fFRgh/jpCIMK71QM2e9etV32croHZkM/7UzgVngp3RFoPKVns7 N7sol9HKMBFRbOkBM/CU+LFF5MJ0jtqicFKPZX8x5RLOW+eHflNfGxm6h4/o+R06qeaK qYQQ1+6vIccpKRuR+kochYgyXBX8FvOBPYbMhde/nG3FobSW+QMaaK1r3Jihw9AJMGSq Q4zBsDftFxZD588BPD38kR7KgQkiIrQKH9Qw7XojEzraMFcR3OZjy3Pt7/Is64HNx6lb u+CWrquPsW8MlyqejHpOy1X8ylYGviXDMQXd8Azj9qt1GxzxaOM5SWer1V58Av6cLihg tfAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=8SKkJ1P3CFsYFDquCJuoGEoO9YIbmH4NihYBqf9L70Q=; b=tRsoFBPSAWg6EjeQeKQNAAyWYvRkehs4nkBeoQkMcrzFGyr/tTTV0yJxLkCEPh3Did EJIaGJwrHOLTCt1eeWzTmpTsSBH/kIWB/RTd8eUh3s7eQxG7JcjpKK8upOwAXy39w/9k 0szKSLDIsK1dlYeEhQ+ap0vCMsBWb6gILgDCYSy+uCswOquoXGDuwwyxUG7T8yclD249 SzVJVaSGU1Y8Z7nFYl4pbMCti9RuamBO+bLMX4ydM6L/xRQT6bwU24uF1VCe8C2Urgqq SEZiOQSWYFIqWYTUffH+0p6brHB8Cj/xl5+iyXILmbT+mn8WqyjBI28y5IVsGMmj6Sax C3Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=KhUfao3C; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ld12si1470145ejb.329.2020.09.03.02.04.42; Thu, 03 Sep 2020 02:05:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=KhUfao3C; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726855AbgICJEi (ORCPT + 99 others); Thu, 3 Sep 2020 05:04:38 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:45255 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbgICJEg (ORCPT ); Thu, 3 Sep 2020 05:04:36 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200903090433euoutp0117b7fcbbc0ae4bfb374c35946d3654eb~xOrDWNKP52842728427euoutp01U for ; Thu, 3 Sep 2020 09:04:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200903090433euoutp0117b7fcbbc0ae4bfb374c35946d3654eb~xOrDWNKP52842728427euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1599123873; bh=8SKkJ1P3CFsYFDquCJuoGEoO9YIbmH4NihYBqf9L70Q=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=KhUfao3CUy5JJLz+Ipa6lPJuR34TiZxrTt9mhcgXS1FVhR6CRXaywkfsYUUo/QKQr /HkDoVgHMfEQEzN803qXq31Q2sJbRtCFBnDA90RTb+5vwZIIKqhpNDxeWZwdD5iMxU o9E3xsPsSKlSVErc8XurrEBDMQJ214i1wFO5UZ48= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200903090433eucas1p2597db220995e3b922eaa8ff2a42a176b~xOrC-wwoo0789707897eucas1p2S; Thu, 3 Sep 2020 09:04:33 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 79.0A.06456.1A1B05F5; Thu, 3 Sep 2020 10:04:33 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200903090433eucas1p1161cd2c29655020d5625442eac095b23~xOrCjAHpg3247532475eucas1p1j; Thu, 3 Sep 2020 09:04:33 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200903090432eusmtrp170e3fc3581c9c22e1051e3504c642787~xOrChopjX2799327993eusmtrp1G; Thu, 3 Sep 2020 09:04:32 +0000 (GMT) X-AuditID: cbfec7f2-809ff70000001938-c8-5f50b1a10bed Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 6C.B1.06017.0A1B05F5; Thu, 3 Sep 2020 10:04:32 +0100 (BST) Received: from [106.120.51.18] (unknown [106.120.51.18]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200903090432eusmtip149265b768cb1c43ed1f8101726aacc0f~xOrCG8EOd2874328743eusmtip1K; Thu, 3 Sep 2020 09:04:32 +0000 (GMT) Subject: Re: [PATCH] crypto: s5p-sss: remove redundant null check To: Xu Wang , krzk@kernel.org, vz@mleia.com, herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org From: Kamil Konieczny Message-ID: <5349cd5e-4ea5-3cc5-971a-b96b499b6f25@samsung.com> Date: Thu, 3 Sep 2020 11:04:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200903083738.85345-1-vulab@iscas.ac.cn> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01SfSyUcRzf73m5e5iznyP3HVbbjam2yErOLkqrua2RsmXawuEZ8to9TvjL IsvFZip0k9CLl5ZyJG7cMO+GJnlJZStmxJSjxYacJ8t/n7fvfp/P9mNIsY62Y2ISkllVgjJO KjCnGrvXh46V1wWEHtcXgaxkOIuS3VtwkA0PvxHKpr+uE7IP+hKBrHjYQMiq77RSsu2NTPIs o2ioniQUjW1OCkNTPVLoanIEiq3yB5TCqDsYILhmfjqSjYtJYVWu3mHm0c1ZI3RSNp36NF+P MlAFpUFmDOCTMLnYRGiQOSPGVQgGGrsonqwi+PLjO80TI4IX1ePCvZNNYwvijUoEVT/rkckQ 4yUEzf0SE7bGPmBs3949sMEqGMspoE2YxBGwYpja1QXYFdoH+3Z7iLA3dOrGSA1iGAo7wvPb Pib5AA6G5tl5IR+xgr5HM7txM+wBf97zfUgsgU8zTwgeH4J3SyWkqRtgvRDylhdpvvR5+Jg9 9W+ANSz0NPzDDjBwP5fiDzJ39mc8FPIkF0HraoOAT8nB+KtNYGpH4iPwWu/Kyz6w+KqOMsmA LWFiyY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3g6BgzFCAumJJanZqakFqUUwfUwcnFINjAvnr2vnjJZqiTDXPHtrXr1LgBFnVLbi pOj6X0UrzxtOUFoYk/Ly1AeTIqkwdf2DjgukGy+d2u3M/ed2Xsupi4yx+w2NeduDNK97Ry6p /RVtXXugg89319qp881FMjx/X3I5PfO4Jc/EH7dX3PDx9P7PfkxnyZWly8p3rfv38qxeRdvX ldn9b5VYijMSDbWYi4oTAeZCP9rXAgAA X-CMS-MailID: 20200903090433eucas1p1161cd2c29655020d5625442eac095b23 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200903083751eucas1p2e8419fda42358247a38e5f6c6b345414 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200903083751eucas1p2e8419fda42358247a38e5f6c6b345414 References: <20200903083738.85345-1-vulab@iscas.ac.cn> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 9/3/20 10:37 AM, Xu Wang wrote: > Because clk_disable_unprepare already checked NULL clock > parameter, so the additional checks are unnecessary, just remove them. > > Signed-off-by: Xu Wang > --- > drivers/crypto/s5p-sss.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c > index 341433fbcc4a..fdcbfd45c884 100644 > --- a/drivers/crypto/s5p-sss.c > +++ b/drivers/crypto/s5p-sss.c > @@ -2307,8 +2307,7 @@ static int s5p_aes_probe(struct platform_device *pdev) > [...] Acked-by: Kamil Konieczny