git: 0732617ec174 - main - cam/nda: Remove impossible CAM codes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Jul 2023 04:32:33 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0732617ec174854c0875bb7171d850473c61569f commit 0732617ec174854c0875bb7171d850473c61569f Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2023-07-21 04:22:27 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-07-21 04:32:31 +0000 cam/nda: Remove impossible CAM codes The NVME SIM does not generate these status values, so remove them. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D41084 --- sys/cam/nvme/nvme_da.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c index 94915ec6a726..f2fb1b79f452 100644 --- a/sys/cam/nvme/nvme_da.c +++ b/sys/cam/nvme/nvme_da.c @@ -1284,12 +1284,7 @@ ndaerror(union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags) softc->timeouts++; #endif break; - case CAM_REQ_ABORTED: case CAM_REQ_CMP_ERR: - case CAM_REQ_TERMIO: - case CAM_UNREC_HBA_ERROR: - case CAM_DATA_RUN_ERR: - case CAM_ATA_STATUS_ERROR: #ifdef CAM_IO_STATS softc->errors++; #endif