From 387c7c9d0eaf147256a54d803ffbd116af6fcd17 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Mon, 30 Jul 2001 00:30:58 +0000 Subject: (Forced commit- last one missed the comments) Handle both old and new TARGIOALLOCUNIT/TARGIOFREEUNIT cases- the new one allows us to specify inquiry data we want to use. Handle more of the CAM_DIS_DISCONNECT case. --- sys/cam/scsi/scsi_target.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/cam') diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c index 48fa268135e0..d7370ee860f2 100644 --- a/sys/cam/scsi/scsi_target.c +++ b/sys/cam/scsi/scsi_target.c @@ -2155,8 +2155,8 @@ allocdescr() struct targ_cmd_desc* descr; /* Allocate the targ_descr structure */ - descr = (struct targ_cmd_desc *)malloc(sizeof(*descr), - M_DEVBUF, M_NOWAIT); + descr = (struct targ_cmd_desc *) + malloc(sizeof(*descr), M_DEVBUF, M_NOWAIT); if (descr == NULL) return (NULL); -- cgit v1.3