diff options
| author | Manish Narani <[email protected]> | 2021-06-15 16:13:55 +0530 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2021-08-24 10:15:29 +0200 |
| commit | 462f58fdb8c0277a49c01831bf4dc8405c37ddaf (patch) | |
| tree | e389548367c0ff6dac12edeef33c8b0dc0b067db /tools/perf/scripts/python | |
| parent | 66bad6ed2204fdb78a0a8fb89d824397106a5471 (diff) | |
mmc: sdhci-of-arasan: Use appropriate type of division macro
The division macro DIV_ROUND_CLOSEST takes int values as the argument.
However the code here uses unsigned int values for this, which is
causing the values comparison with 0 as always true. We can use
DIV_ROUND_CLOSEST_ULL instead for the same.
Addresses-coverity: ("result_independent_of_operands")
Signed-off-by: Manish Narani <[email protected]>
Acked-by: Adrian Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions