From: Colin Ian King Date: Tue, 11 Dec 2018 09:52:12 +0000 Subject: Re: [PATCH][clk-next] clk: imx: remove redundant initialization of ret to zero Message-Id: <149a5898-5df0-c363-c9e5-5d64f0f98906@canonical.com> List-Id: References: <20181209150832.9366-1-colin.king@canonical.com> <20181211094812.GB3116@kadam> In-Reply-To: <20181211094812.GB3116@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: Stephen Boyd , Michael Turquette , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , Shawn Guo , Sascha Hauer , linux-arm-kernel@lists.infradead.org On 11/12/2018 09:48, Dan Carpenter wrote: > On Sun, Dec 09, 2018 at 03:08:32PM +0000, Colin King wrote: >> From: Colin Ian King >> >> The initialization of ret is redundant as it is being re-assigned to >> the return value from the call to imx8m_clk_composite_compute_dividers. >> Clean this up by removing the initialization. >> > > Just curious, is there a static checker which complains about this as > dead code? If I recall correctly, cppcheck, but I may be wrong, I use several different tools. > > regards, > dan carpenter >