]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix sparse warnings of right shift bigger than source value size:
authorRandy Dunlap <randy.dunlap@oracle.com>
Sat, 16 Jul 2011 13:31:05 +0000 (23:31 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 05:05:15 +0000 (15:05 +1000)
commit86c3235454ee1be0ab46ab738df2dfac944d77ae
treeb64638bde9da31fe4d9abf6a73ea935bf3887a2d
parent2f98deb4b30de3b9e58530270c6d9b5b36659f1d
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 <randy.dunlap@oracle.com>
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