]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix sparse warnings of right shift bigger than source value size:
authorRandy Dunlap <rdunlap@xenotime.net>
Wed, 3 Aug 2011 00:52:45 +0000 (10:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 24 Aug 2011 05:24:12 +0000 (15:24 +1000)
commit79215ba9dce4edc0467bd515841e0b6fb0adc17c
treed2f5484f6ea4e40e25adb199a9aee556a85cd35c
parentf704ae44a8d7b0458fecb679571371ad288c3f5c
Fix sparse warnings of right shift bigger than source value size:

drivers/scsi/megaraid.c:311:65: warning: right shift by bigger than source value
drivers/scsi/megaraid.c:313:65: warning: right shift by bigger than source value
drivers/scsi/megaraid.c:317:67: warning: right shift by bigger than source value
drivers/scsi/megaraid.c:319:67: warning: right shift by bigger than source value

Patch suggestion from email by Al Viro:

"Since both are claimed to be strings, I really suspect that this >> 8 is
misspelled >> 4 and they have a character followed by pair of two-digit
packed decimals in there..."

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Neela Syam Kolli <megaraidlinux@lsi.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/scsi/megaraid.c