]> 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>
Wed, 24 Aug 2011 23:46:31 +0000 (09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 1 Sep 2011 03:28:42 +0000 (13:28 +1000)
commit68761aa796776eacb6b63af96490dcc471a658a0
treeff51aa96ebd0acd87d172d34eedb822d4fbdc8c6
parent6ae8166a68c833de89dd432a422229e9614fcafc
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