[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180309151952.GG13567@gondor.apana.org.au>
Date: Fri, 9 Mar 2018 23:19:53 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: "David S. Miller" <davem@...emloft.net>,
Vladimir Zapolskiy <vz@...ia.com>,
Kamil Konieczny <k.konieczny@...tner.samsung.com>,
Tero Kristo <t-kristo@...com>, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-samsung-soc@...r.kernel.org
Subject: Re: [PATCH 1/4] crypto: omap-sham: Remove useless check for non-null
request
On Thu, Mar 01, 2018 at 09:50:10PM +0100, Krzysztof Kozlowski wrote:
> ahash_request 'req' argument passed by the caller
> omap_sham_handle_queue() cannot be NULL here because it is obtained from
> non-NULL pointer via container_of().
>
> This fixes smatch warning:
> drivers/crypto/omap-sham.c:812 omap_sham_prepare_request() warn: variable dereferenced before check 'req' (see line 805)
>
> Signed-off-by: Krzysztof Kozlowski <krzk@...nel.org>
All applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists