Skip to content
Commit 5f114ebc authored by Lee Jones's avatar Lee Jones
Browse files

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: default avatarLee Jones <lee.jones@linaro.org>
parent 8a012ff9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment