From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB112C433F5 for ; Fri, 29 Apr 2022 05:51:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354320AbiD2Fy3 (ORCPT ); Fri, 29 Apr 2022 01:54:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243441AbiD2FyZ (ORCPT ); Fri, 29 Apr 2022 01:54:25 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 327D5B82C6; Thu, 28 Apr 2022 22:51:08 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1nkJWp-008984-TB; Fri, 29 Apr 2022 15:50:57 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 29 Apr 2022 13:50:56 +0800 Date: Fri, 29 Apr 2022 13:50:56 +0800 From: Herbert Xu To: Colin Ian King Cc: Sumit Garg , Matt Mackall , op-tee@lists.trustedfirmware.org, linux-crypto@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hwrng: optee-rng: remove redundant initialization to variable rng_size Message-ID: References: <20220424181156.1364446-1-colin.i.king@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220424181156.1364446-1-colin.i.king@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 24, 2022 at 07:11:56PM +0100, Colin Ian King wrote: > Variable rng_size is being initialized with a value that is never read, > the variable is being re-assigned later on. The initialization is > redundant and can be removed. > > Cleans up cppcheck warning: > Variable 'rng_size' is assigned a value that is never used. > > Signed-off-by: Colin Ian King > --- > drivers/char/hw_random/optee-rng.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt