scsi: consolidate opcode lookup in scsi_opcode_sa_name()
authorHannes Reinecke <hare@suse.de>
Fri, 24 Oct 2014 12:26:56 +0000 (14:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:16:03 +0000 (11:16 +0100)
commit2478a736a7d01e3ef8d273e8fc5b11b6ed9af3ea
tree4c1a052410411ce08b2093776019e483330eec35
parent234d67781956e5c6891906e4c3b1eb89edddb6be
scsi: consolidate opcode lookup in scsi_opcode_sa_name()

Consolidate the CDB opcode lookup in scsi_opcode_sa_name(),
so that we don't have to call several functions to figure
out the CDB opcode string.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/constants.c