Author: imp Date: Thu Mar 5 06:21:00 2020 New Revision: 358663 URL: https://svnweb.freebsd.org/changeset/base/358663
Log: All paths lead to xpt_done, so move it after the switch. Modified: head/sys/cam/cam_xpt.c Modified: head/sys/cam/cam_xpt.c ============================================================================== --- head/sys/cam/cam_xpt.c Thu Mar 5 06:20:17 2020 (r358662) +++ head/sys/cam/cam_xpt.c Thu Mar 5 06:21:00 2020 (r358663) @@ -5326,14 +5326,13 @@ xptaction(struct cam_sim *sim, union ccb *work_ccb) cpi->transport = XPORT_UNSPECIFIED; cpi->transport_version = XPORT_VERSION_UNSPECIFIED; cpi->ccb_h.status = CAM_REQ_CMP; - xpt_done(work_ccb); break; } default: work_ccb->ccb_h.status = CAM_REQ_INVALID; - xpt_done(work_ccb); break; } + xpt_done(work_ccb); } /* _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"