diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 75ac07d874b6..d8994aa12c60 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -14,32 +14,28 @@ * * Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992 * - * $Id: sd.c,v 1.69 1995/11/06 08:19:24 davidg Exp $ + * $Id: sd.c,v 1.70 1995/11/19 22:22:28 dyson Exp $ */ #define SPLSD splbio -#include #include #include #include #include -#include -#include -#include #include #include -#include -#include -#include -#include +#include #include #include +#include +#include +#include + #include #include #include + #include -#include -#include #include #include /* XXX */ @@ -457,7 +453,7 @@ sdstart(u_int32 unit, u_int32 flags) { register struct scsi_link *sc_link = SCSI_LINK(&sd_switch, unit); register struct scsi_data *sd = sc_link->sd; - struct buf *bp = 0; + struct buf *bp = NULL; struct scsi_rw_big cmd; u_int32 blkno, nblk; @@ -482,8 +478,7 @@ sdstart(u_int32 unit, u_int32 flags) if (bp == NULL) { /* yes, an assign */ return; } - TAILQ_REMOVE( &sd->buf_queue, bp, b_act); - + TAILQ_REMOVE(&sd->buf_queue, bp, b_act); /* * If the device has become invalid, abort all the @@ -577,7 +572,7 @@ sd_ioctl(dev_t dev, int cmd, caddr_t addr, int flag, struct proc *p, if (!(sc_link->flags & SDEV_MEDIA_LOADED)) return (EIO); - if (cmd == DIOCSBAD) + if (cmd == DIOCSBAD) return (EINVAL); /* XXX */ error = dsioctl("sd", dev, cmd, addr, flag, &sd->dk_slices, sdstrategy1, (ds_setgeom_t *)NULL);