From: Lee Jones Date: Mon, 18 Aug 2014 15:11:27 +0000 (+0100) Subject: mfd: sm501: Avoid implicit sign extension X-Git-Tag: fixes-against-v3.18-rc2~69^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f114ebcee681b011e8b5bcd2b24169b85286050;p=pandora-kernel.git 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 --- Reading git-diff-tree failed