]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Fix sparse warnings of right shift bigger than source value size:
authorRandy Dunlap <rdunlap@xenotime.net>
Tue, 26 Jul 2011 10:14:48 +0000 (20:14 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 2 Aug 2011 05:14:22 +0000 (15:14 +1000)
commite03ed6468452414d04a0458ecfe61fbe08cac17f
tree3ae6eb15cf492f6f547b972ad7371d99b2d45b5f
parent21aa0cedbf91db43e2081136b1a4f66431c17a9d
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