From d64b399db6fd3e04bdddfe65e9b2d9a5848b03b6 Mon Sep 17 00:00:00 2001 From: Peter Avalos Date: Thu, 29 Nov 2007 03:40:09 +0000 Subject: [PATCH] Do not initialize path variable with useless value just before xpt_create_path overwrites it anyway. Obtained-from: FreeBSD --- sys/bus/cam/cam_xpt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/bus/cam/cam_xpt.c b/sys/bus/cam/cam_xpt.c index 0942f1a25c..9882c0b7b6 100644 --- a/sys/bus/cam/cam_xpt.c +++ b/sys/bus/cam/cam_xpt.c @@ -27,7 +27,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/cam/cam_xpt.c,v 1.80.2.18 2002/12/09 17:31:55 gibbs Exp $ - * $DragonFly: src/sys/bus/cam/cam_xpt.c,v 1.51 2007/11/29 02:41:21 pavalos Exp $ + * $DragonFly: src/sys/bus/cam/cam_xpt.c,v 1.52 2007/11/29 03:40:09 pavalos Exp $ */ #include #include @@ -5184,7 +5184,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) { -- 2.41.0