aboutsummaryrefslogtreecommitdiffstats
path: root/sys/cam/nvme/nvme_da.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-12-06 23:05:22 +0000
committerWarner Losh <imp@FreeBSD.org>2017-12-06 23:05:22 +0000
commit762a7f4f5f6f643c1c871554795ab9544cadc3a5 (patch)
treea0c21b5b6331f8e56a8f3b72c0cc186560267a87 /sys/cam/nvme/nvme_da.c
parent2b31251a64777c01ede787691954d7d6fbda64c6 (diff)
downloadsrc-762a7f4f5f6f643c1c871554795ab9544cadc3a5.tar.gz
src-762a7f4f5f6f643c1c871554795ab9544cadc3a5.zip
Define xpt_path_inq.
This provides a nice wrarpper around the XPT_PATH_INQ ccb creation and calling. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D13387
Notes
Notes: svn path=/head/; revision=326645
Diffstat (limited to 'sys/cam/nvme/nvme_da.c')
-rw-r--r--sys/cam/nvme/nvme_da.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
index c8cf4937bd7a..ebc6f0eb9536 100644
--- a/sys/cam/nvme/nvme_da.c
+++ b/sys/cam/nvme/nvme_da.c
@@ -706,10 +706,7 @@ ndaregister(struct cam_periph *periph, void *arg)
softc->quirks = NDA_Q_NONE;
- bzero(&cpi, sizeof(cpi));
- xpt_setup_ccb(&cpi.ccb_h, periph->path, CAM_PRIORITY_NONE);
- cpi.ccb_h.func_code = XPT_PATH_INQ;
- xpt_action((union ccb *)&cpi);
+ xpt_path_inq(&cpi, periph->path);
TASK_INIT(&softc->sysctl_task, 0, ndasysctlinit, periph);