[SCSI] zfcp: Simplify mask lookups for incoming RSCNs
commite0d7fcb5ecad495a54f7334e410f5e16e1da7f78
authorChristof Schmitt <christof.schmitt@de.ibm.com>
Fri, 19 Dec 2008 15:56:58 +0000 (19 16:56 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 29 Dec 2008 17:38:27 +0000 (29 11:38 -0600)
treef891ec120082f334fada993d6c6bb54e279ff010
parent3623ecba19660d1d838f8b1a4d1e80007d603617
[SCSI] zfcp: Simplify mask lookups for incoming RSCNs

Use an array for looking up the mask corresponding to the 2-bit
information instead of the switch/case.

Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Acked-by: Felix Beck <felix@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/s390/scsi/zfcp_def.h
drivers/s390/scsi/zfcp_fc.c