]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/scsi/megaraid.c: fix sparse warnings
authorRandy Dunlap <rdunlap@xenotime.net>
Thu, 8 Dec 2011 04:33:18 +0000 (15:33 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Dec 2011 04:18:50 +0000 (15:18 +1100)
commit6fa4e1946efea3b0b3ec07847d3eaa092696d10b
treeca2db2bc7b27c4e9bbaecb6e855f0026941b10d8
parente05353927368b9832e155b49d7cd1e46849713d7
drivers/scsi/megaraid.c: fix sparse warnings

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