summaryrefslogtreecommitdiff
path: root/drivers/mmc/meson_gx_mmc.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-05-10 19:20:17 (GMT)
committerJaehoon Chung <jh80.chung@samsung.com>2017-05-29 08:28:52 (GMT)
commitaae78fa774bf5da8d5ac0f80773283196bcb0e24 (patch)
tree391dcf4f7d9803cbe94fc8775b0c6aeba933ac98 /drivers/mmc/meson_gx_mmc.c
parent7ca0d3dde177fa4245f4a6174c577a58c8a3051d (diff)
downloadu-boot-fsl-qoriq-aae78fa774bf5da8d5ac0f80773283196bcb0e24.tar.xz
drivers/power/regulator/max77686.c: Fix comparisons of unsigned expressions
Inside of max77686_buck_volt2hex/max77686_buck_hex2volt/max77686_ldo_volt2hex we check that the value we calculate is >= 0 however we declare 'hex' as unsigned int making these always true. Mark these as 'int' instead. We also move hex_max to int as they are constants that are 0x3f/0xff. Given that the above functions are marked as returning an int, make the variables we assign their return value to also be int to be able to catch the error condition now. Reported by clang-3.8. Cc: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/mmc/meson_gx_mmc.c')
0 files changed, 0 insertions, 0 deletions