diff options
author | kan <kan@FreeBSD.org> | 2005-05-11 17:39:33 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2005-05-11 17:39:33 +0000 |
commit | 11168a608905bdf6f432291f615ae206df257bf4 (patch) | |
tree | 913fdb21d1fcc086cc7599c9f540479290cafc94 /sys/cam | |
parent | 80c76b58f67b58592a90596619519509b06a8b6f (diff) | |
download | FreeBSD-src-11168a608905bdf6f432291f615ae206df257bf4.zip FreeBSD-src-11168a608905bdf6f432291f615ae206df257bf4.tar.gz |
Do not initialize path variable with useless value just before
xpt_create_path overwrites it anyway.
Noticed by: Coverity Prevent analysis tool
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/cam_xpt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 6c47d49..2d46315 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -5363,7 +5363,6 @@ xpt_scan_bus(struct cam_periph *periph, union ccb *request_ccb) struct cam_path *path; cam_status status; - path = request_ccb->ccb_h.path; status = xpt_create_path(&path, xpt_periph, path_id, target_id, lun_id); if (status != CAM_REQ_CMP) { |