From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 11 Apr 2017 12:16:55 -0700 From: "sboyd@codeaurora.org" To: David Binderman Cc: "mturquette@baylibre.com" , "linux-clk@vger.kernel.org" Subject: Re: linux-4.11-rc6/drivers/clk/versatile/clk-icst.c:290]: (style) Redundant condition: Message-ID: <20170411191655.GJ7065@codeaurora.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: List-ID: On 04/10, David Binderman wrote: > > Hello there, > > linux-4.11-rc6/drivers/clk/versatile/clk-icst.c:290]: (style) Redundant condition: If 'rate <= 25000000', the comparison 'rate < 29000000' is always true. > > Source code is > > if (rate <= 25000000 || rate < 29000000) > return 25000000; > > Suggest new code > > if ( rate < 29000000) > return 25000000; > Is this automated? Patches welcome. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project