Remove use of unitialised variable xp->req_sense_length.

Submitted by:	Wolfgang Stanglmeier <wolf@kintaro.cologne.de>
This commit is contained in:
Stefan Eßer 1995-03-22 11:00:23 +00:00
parent 33865a313c
commit 6bf3dde846
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7245

View File

@ -1,6 +1,6 @@
/**************************************************************************
**
** $Id: ncr.c,v 1.32 1995/03/17 04:27:18 davidg Exp $
** $Id: ncr.c,v 1.33 1995/03/21 22:14:27 se Exp $
**
** Device driver for the NCR 53C810 PCI-SCSI-Controller.
**
@ -1217,7 +1217,7 @@ static void ncr_attach (pcici_t tag, int unit);
static char ident[] =
"\n$Id: ncr.c,v 1.32 1995/03/17 04:27:18 davidg Exp $\n";
"\n$Id: ncr.c,v 1.33 1995/03/21 22:14:27 se Exp $\n";
u_long ncr_version = NCR_VERSION
+ (u_long) sizeof (struct ncb)
@ -3830,7 +3830,6 @@ static INT32 ncr_start (struct scsi_xfer * xp)
*/
cp->phys.sense.addr = vtophys (&cp->xfer->sense);
cp->phys.sense.size = sizeof(struct scsi_sense_data);
cp->phys.sense.size = xp->req_sense_length; /*21.3.95*/
/*
** status
*/