From: Stephen Boyd <sboyd@kernel.org>
To: Thorsten Blum <thorsten.blum@toblux.com>,
christophe.jaillet@wanadoo.fr, erick.archer@gmx.com,
gustavoars@kernel.org, mturquette@baylibre.com,
u.kleine-koenig@pengutronix.de
Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
Thorsten Blum <thorsten.blum@toblux.com>
Subject: Re: [PATCH v2] clk: hisilicon: Remove unnecessary local variable
Date: Thu, 08 Aug 2024 12:53:11 -0700 [thread overview]
Message-ID: <8cfb858e91af19734c675d85af5a9043.sboyd@kernel.org> (raw)
In-Reply-To: <20240801103616.20430-1-thorsten.blum@toblux.com>
Quoting Thorsten Blum (2024-08-01 03:36:16)
> The local u64 variable refdiv_val has the same value as the local u32
> variable val and can be removed. Remove it and use val directly as the
> divisor to also remove the following Coccinelle/coccicheck warning
> reported by do_div.cocci:
>
> WARNING: do_div() does a 64-by-32 division, please consider using div64_u64 instead
>
> Use the preferred div_u64() function instead of the do_div() macro.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
> ---
Applied to clk-next
prev parent reply other threads:[~2024-08-08 19:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-01 10:36 Thorsten Blum
2024-08-01 17:18 ` Uwe Kleine-König
2024-08-08 19:53 ` Stephen Boyd [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8cfb858e91af19734c675d85af5a9043.sboyd@kernel.org \
--to=sboyd@kernel.org \
--cc=christophe.jaillet@wanadoo.fr \
--cc=erick.archer@gmx.com \
--cc=gustavoars@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=thorsten.blum@toblux.com \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®