diff options
author | Lee Jones <lee.jones@linaro.org> | 2014-08-18 17:11:27 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-09-26 09:15:34 +0200 |
commit | 5f114ebcee681b011e8b5bcd2b24169b85286050 (patch) | |
tree | f4bdd1b8272e550c80f72fc1a442a8839c83450a /drivers/gpio/gpio-tc3589x.c | |
parent | mfd: twl4030-irq: Check return value from twl_i2c_write() - warn() on failure (diff) | |
download | linux-5f114ebcee681b011e8b5bcd2b24169b85286050.tar.xz linux-5f114ebcee681b011e8b5bcd2b24169b85286050.zip |
mfd: sm501: Avoid implicit sign extension
Suspicious implicit sign extension where 'reg' (unsigned char) is
promoted in reg << clksrc to int, then sign-extended to unsigned
long. If reg << clksrc is greater than 0x7FFFFFFF, the upper bits
of the result will all be 1.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-tc3589x.c')
0 files changed, 0 insertions, 0 deletions