mmc: sdhci-of-arasan: Use appropriate type of division macro
authorManish Narani <manish.narani@xilinx.com>
Tue, 15 Jun 2021 10:43:55 +0000 (16:13 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Aug 2021 08:15:29 +0000 (10:15 +0200)
commit462f58fdb8c0277a49c01831bf4dc8405c37ddaf
treee389548367c0ff6dac12edeef33c8b0dc0b067db
parent66bad6ed2204fdb78a0a8fb89d824397106a5471
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 <manish.narani@xilinx.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1623753837-21035-6-git-send-email-manish.narani@xilinx.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-arasan.c