Move the return so that the DEVFS code can execute, too. All code is

equal (it is just that some is more equal than other).
This commit is contained in:
Eivind Eklund 1998-12-09 02:56:48 +00:00
parent 085415fb9b
commit 11e8322cac

View File

@ -8,7 +8,7 @@
* of this software, nor does the author assume any responsibility
* for damages incurred with its use.
*
* $Id: ctx.c,v 1.27 1998/06/07 17:10:15 dfr Exp $
* $Id: ctx.c,v 1.28 1998/06/14 10:52:52 bde Exp $
*/
/*
@ -196,12 +196,12 @@ ctxattach(struct isa_device * devp)
sr->iobase = devp->id_iobase;
sr->maddr = devp->id_maddr;
sr->msize = devp->id_msize;
return (1);
#ifdef DEVFS
sr->devfs_token =
devfs_add_devswf(&ctx_cdevsw, 0, DV_CHR, 0, 0, 0600,
"ctx%d", devp->id_unit);
#endif /* DEVFS */
return (1);
}
static int