summaryrefslogtreecommitdiff
path: root/sys/adosfs/advfsops.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-05-16 12:48:33 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-05-16 12:48:33 +0000
commit6585d4db5e5404b845849f5e9fe0d623c62cfd22 (patch)
tree75800e56e16cae6b5e9c3de41d5c5b2756680841 /sys/adosfs/advfsops.c
parent5bc24a1bb212a40743a45a2d5234a746c83746c2 (diff)
No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)
Diffstat (limited to 'sys/adosfs/advfsops.c')
-rw-r--r--sys/adosfs/advfsops.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/adosfs/advfsops.c b/sys/adosfs/advfsops.c
index f4508f7a029..93c61772029 100644
--- a/sys/adosfs/advfsops.c
+++ b/sys/adosfs/advfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: advfsops.c,v 1.18 2001/02/20 01:50:08 assar Exp $ */
+/* $OpenBSD: advfsops.c,v 1.19 2001/05/16 12:48:31 ho Exp $ */
/* $NetBSD: advfsops.c,v 1.24 1996/12/22 10:10:12 cgd Exp $ */
/*
@@ -243,8 +243,7 @@ adosfs_mountfs(devvp, mp, p)
/* allocate and load bitmap, set free space */
amp->bitmap = malloc(((amp->numblks + 31) / 32) * sizeof(*amp->bitmap),
M_ADOSFSBITMAP, M_WAITOK);
- if (amp->bitmap)
- adosfs_loadbitmap(amp);
+ adosfs_loadbitmap(amp);
if (mp->mnt_flag & MNT_RDONLY && amp->bitmap) {
/*
* Don't need the bitmap any more if it's read-only.