[SCSI] Fix incorrect reporting of host protection capabilities
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 30 Oct 2009 02:32:26 +0000 (22:32 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 6 Nov 2009 17:50:52 +0000 (11:50 -0600)
The advent of DIF Type 2 devices exposed some missing break statements
in the protection mask switch constructs.  However, rewriting the code
to use an index into a small static array seemed like a more elegant
solution.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

No differences found