nvme-scsi: remove nvme_trans_security_protocol
Christoph Hellwig
maintainerPATCH 1/1 nvme-scsi: remove nvme_trans_security_protocol
This function just returns the same error code and sense data as the default statement in the switch in the caller.
Signed-off-by Christoph Hellwig <hch at lst.de>
--- drivers/nvme/host/scsi.c | 13 ------------- 1 file changed, 13 deletions(-)
drivers/nvme/host/scsi.c +0 -13
@@ -2138,15 +2138,6 @@ static int nvme_trans_request_sense(struct nvme_ns *ns, struct sg_io_hdr *hdr,return res; } -static int nvme_trans_security_protocol (struct nvme_ns *ns, -struct sg_io_hdr *hdr, -u8 *cmd) -{ -return nvme_trans_completion (hdr,SAM_STAT_CHECK_CONDITION , -ILLEGAL_REQUEST ,SCSI_ASC_ILLEGAL_COMMAND , -SCSI_ASCQ_CAUSE_NOT_REPORTABLE ); -} -static int nvme_trans_synchronize_cache (struct nvme_ns *ns,struct sg_io_hdr *hdr) {
@@ -2414,10 +2405,6 @@ static int nvme_scsi_translate(struct nvme_ns *ns, struct sg_io_hdr *hdr)case REQUEST_SENSE : retcode =nvme_trans_request_sense (ns, hdr, cmd);break ; -case SECURITY_PROTOCOL_IN : -case SECURITY_PROTOCOL_OUT : - retcode =nvme_trans_security_protocol (ns, hdr, cmd); -break ;case SYNCHRONIZE_CACHE : retcode =nvme_trans_synchronize_cache (ns, hdr);break ;
Signature · 1 line
2.11.0
PATCH 1/1 nvme-scsi: remove nvme_trans_security_protocol
Quoted 4 lines · Christoph Hellwig
This function just returns the same error code and sense data as the default statement in the switch in the caller.
Signed-off-by Christoph Hellwig <hch at lst.de>
Looks good.
Reviewed-by Keith Busch <keith.busch at intel.com>