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 X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9748AC7618F for ; Mon, 22 Jul 2019 21:43:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7243C21951 for ; Mon, 22 Jul 2019 21:43:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728233AbfGVVnh (ORCPT ); Mon, 22 Jul 2019 17:43:37 -0400 Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:26912 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732871AbfGVVng (ORCPT ); Mon, 22 Jul 2019 17:43:36 -0400 Received: from [192.168.1.41] ([92.140.204.221]) by mwinf5d78 with ME id fxjb200034n7eLC03xjbvD; Mon, 22 Jul 2019 23:43:35 +0200 X-ME-Helo: [192.168.1.41] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 22 Jul 2019 23:43:35 +0200 X-ME-IP: 92.140.204.221 Subject: Re: [PATCH][next] clk: Si5341/Si5340: remove redundant assignment to n_den To: Stephen Boyd , Colin King , linux-clk@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Newsgroups: gmane.linux.kernel,gmane.linux.kernel.clk,gmane.linux.kernel.janitors References: <20190701165020.19840-1-colin.king@canonical.com> <20190722212414.6EF8D21900@mail.kernel.org> From: Christophe JAILLET Message-ID: Date: Mon, 22 Jul 2019 23:43:32 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190722212414.6EF8D21900@mail.kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Le 22/07/2019 à 23:24, Stephen Boyd a écrit : > Please Cc authors of drivers so they can ack/review. > > Adding Mike to take a look. > > Quoting Colin King (2019-07-01 09:50:20) >> From: Colin Ian King >> >> The variable n_den is initialized however that value is never read >> as n_den is re-assigned a little later in the two paths of a >> following if-statement. Remove the redundant assignment. >> >> Addresses-Coverity: ("Unused value") >> Signed-off-by: Colin Ian King >> --- >> drivers/clk/clk-si5341.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/drivers/clk/clk-si5341.c b/drivers/clk/clk-si5341.c >> index 72424eb7e5f8..6e780c2a9e6b 100644 >> --- a/drivers/clk/clk-si5341.c >> +++ b/drivers/clk/clk-si5341.c >> @@ -547,7 +547,6 @@ static int si5341_synth_clk_set_rate(struct clk_hw *hw, unsigned long rate, >> bool is_integer; >> >> n_num = synth->data->freq_vco; >> - n_den = rate; >> >> /* see if there's an integer solution */ >> r = do_div(n_num, rate); > Hi, I got the same advise from some else no later than yesterday (i.e. email the author...) Maybe 'get_maintainer.pl' could be improved to search for it and propose the mail automatically? just my 2c. CJ