From: Bart Van Assche Date: Wed, 8 Jul 2015 14:58:51 +0000 (+0300) Subject: target: Split transport_send_check_condition_and_sense() X-Git-Tag: omap-for-v4.3/fixes-rc1~24^2~32 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab78fef4d5f79134042ae0e1e2c259e1226aa5bd;p=pandora-kernel.git target: Split transport_send_check_condition_and_sense() Move the code for translating a sense_reason_t code into a SCSI status ASC and ASCQ codes from transport_send_check_condition_and_sense() into the new function translate_sense_reason(). Convert the switch statement that performs the translation into table-driven code. Signed-off-by: Bart Van Assche Signed-off-by: Sagi Grimberg Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig Reviewed-by: Martin K. Petersen Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed