diff options
| author | Giorgi Tchankvetadze <giorgitchankvetadze1997@gmail.com> | 2026-06-02 15:32:45 +0400 |
|---|---|---|
| committer | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-06-02 16:10:31 +0300 |
| commit | 00e06cb773fd81d4f2806a6ee69d1aef8f6dd5ca (patch) | |
| tree | 843b91818d3fa5ef2f6a186f9ebcb8cfd1ce052c /drivers/phy/eswin/git@git.tavy.me:linux.git | |
| parent | 9588076fb21992a5d14efeb99134ebf034c7b84f (diff) | |
mm: mm_init: use div64_ul() instead of do_div()
Fixes Coccinelle/coccicheck warning reported by do_div.cocci.
Compared to do_div(), div64_ul() does not implicitly cast the divisor and
does not unnecessarily calculate the remainder.
There are no functional changes. The benefit is purely a semantic cleanup
that better communicates the intent of the division and resolves the
static analysis warning.
Signed-off-by: Giorgi Tchankvetadze <giorgitchankvetadze1997@gmail.com>
Link: https://patch.msgid.link/20260602-mm-div64-cleanup-v1-1-bf5d67d89d93@gmail.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
