summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-07-03 16:29:32 +0000
committerpeter <peter@FreeBSD.org>1999-07-03 16:29:32 +0000
commit6bf98e72931c3ba7c4f7b4e96458680c25ee088a (patch)
tree4becc98a0d4865090384c54993d3b1cb6258a634 /sys/cam
parent70ccb43727168afa1934c8dd3d7b811a4257e883 (diff)
downloadFreeBSD-src-6bf98e72931c3ba7c4f7b4e96458680c25ee088a.zip
FreeBSD-src-6bf98e72931c3ba7c4f7b4e96458680c25ee088a.tar.gz
A minor tweak to shut up gcc (on the Alpha) for two (false) warnings.
How it can think that something that is initialized at declaration can be used while uninitialized is beyond me.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_sa.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c
index 53e1d62..d393884 100644
--- a/sys/cam/scsi/scsi_sa.c
+++ b/sys/cam/scsi/scsi_sa.c
@@ -1,5 +1,5 @@
/*
- * $Id: scsi_sa.c,v 1.28 1999/05/31 11:24:08 phk Exp $
+ * $Id: scsi_sa.c,v 1.29 1999/06/24 15:21:10 mjacob Exp $
*
* Implementation of SCSI Sequential Access Peripheral driver for CAM.
*
@@ -705,6 +705,7 @@ saioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct proc *p)
{
struct cam_periph *periph;
struct sa_softc *softc;
+ scsi_space_code spaceop;
int didlockperiph = 0;
int s;
int unit;
@@ -715,6 +716,8 @@ saioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct proc *p)
unit = SAUNIT(dev);
mode = SAMODE(dev);
density = SADENSITY(dev);
+ error = 0; /* shut up gcc */
+ spaceop = 0; /* shut up gcc */
periph = cam_extend_get(saperiphs, unit);
if (periph == NULL)
@@ -877,8 +880,8 @@ saioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct proc *p)
case MTEOD: /* space to end of recorded medium */
{
int nmarks;
- scsi_space_code spaceop = SS_FILEMARKS;
+ spaceop = SS_FILEMARKS;
nmarks = softc->filemarks;
error = sacheckeod(periph);
if (error) {
OpenPOWER on IntegriCloud