diff options
author | 1999-12-06 06:50:11 +0000 | |
---|---|---|
committer | 1999-12-06 06:50:11 +0000 | |
commit | eb468bc967d8debf83d439eb2b31a35f2d09c243 (patch) | |
tree | 58fa28ad8f37aa07bf61363999bcfdc39cbc504e | |
parent | update to ncurses-5.0-19991204 (diff) | |
download | wireguard-openbsd-eb468bc967d8debf83d439eb2b31a35f2d09c243.tar.xz wireguard-openbsd-eb468bc967d8debf83d439eb2b31a35f2d09c243.zip |
#if 0 some broken unreached code.
-rw-r--r-- | sys/ufs/ffs/ffs_alloc.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index 4017741f978..d7895724a07 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_alloc.c,v 1.16 1999/06/01 01:48:52 millert Exp $ */ +/* $OpenBSD: ffs_alloc.c,v 1.17 1999/12/06 06:50:11 art Exp $ */ /* $NetBSD: ffs_alloc.c,v 1.11 1996/05/11 18:27:09 mycroft Exp $ */ /* @@ -936,10 +936,17 @@ ffs_alloccg(ip, cg, bpref, size) return (bno); } bno = ffs_mapsearch(fs, cgp, bpref, allocsiz); +#if 0 + /* + * XXX ffs_mapsearch will panic instead of return -1, and we can't + * XXX return NULL as a daddr_t anyway. + */ if (bno < 0) { brelse(bp); + /* XXX - NULL as a daddr_t ??? */ return (NULL); } +#endif for (i = 0; i < frags; i++) clrbit(cg_blksfree(cgp), bno + i); cgp->cg_cs.cs_nffree -= frags; @@ -1059,8 +1066,14 @@ norot: * available one in this cylinder group. */ bno = ffs_mapsearch(fs, cgp, bpref, (int)fs->fs_frag); +#if 0 + /* + * XXX ffs_mapsearch will panic instead of return -1, and we can't + * XXX return NULL as a daddr_t anyway. + */ if (bno < 0) - return (NULL); + return (NULL); /* XXX - NULL as a daddr_t ?? */ +#endif cgp->cg_rotor = bno; gotit: blkno = fragstoblks(fs, bno); |