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=unavailable 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 9BA6BC76194 for ; Mon, 22 Jul 2019 22:00:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6F927219BE for ; Mon, 22 Jul 2019 22:00:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732925AbfGVWAf (ORCPT ); Mon, 22 Jul 2019 18:00:35 -0400 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:39278 "EHLO blaine.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731495AbfGVWAd (ORCPT ); Mon, 22 Jul 2019 18:00:33 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hpgMB-000FcE-GA for linux-kernel@vger.kernel.org; Tue, 23 Jul 2019 00:00:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: Christophe JAILLET Subject: Re: [PATCH][next] clk: Si5341/Si5340: remove redundant assignment to n_den Date: Tue, 23 Jul 2019 00:00:24 +0200 Message-ID: References: <20190701165020.19840-1-colin.king@canonical.com> <20190722212414.6EF8D21900@mail.kernel.org> <20190722215314.9F4F121951@mail.kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format="flowed" Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 In-Reply-To: <20190722215314.9F4F121951@mail.kernel.org> Content-Language: en-US Cc: linux-clk@vger.kernel.org, kernel-janitors@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Message-ID: <20190722220024.7Fb8B1VMHGMqGFSgX1iGnowV3z037SNZ73H4ZTTRTsY@z> Le 22/07/2019 à 23:53, Stephen Boyd a écrit : > Quoting Christophe JAILLET (2019-07-22 14:43:32) >> 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. >> > Use --git option of get_maintainer.pl? > > I don't use it explicitly, but the suggestions I get include some git history, so I guess that it is on by default. I was thinking at parsing files to see if MODULE_AUTHOR includes an email. CJ