diff options
author | gsoares <gsoares@openbsd.org> | 2016-01-13 13:01:40 +0000 |
---|---|---|
committer | gsoares <gsoares@openbsd.org> | 2016-01-13 13:01:40 +0000 |
commit | 848fc50685532db50b9694628ebbe718737f783a (patch) | |
tree | 3b85c2f6c64df13f537349de968bfd09516cdf72 /sys/tmpfs | |
parent | Update the comment that is decribing terminate_vm()'s arguments, (diff) | |
download | wireguard-openbsd-848fc50685532db50b9694628ebbe718737f783a.tar.xz wireguard-openbsd-848fc50685532db50b9694628ebbe718737f783a.zip |
kill malloc(9) pointless check, malloc(9) call is using M_WAITOK flag and thus will sleep until
get memory available so shouln't fail.
OK deraadt@ mmcc@
Diffstat (limited to 'sys/tmpfs')
-rw-r--r-- | sys/tmpfs/tmpfs_vfsops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/tmpfs/tmpfs_vfsops.c b/sys/tmpfs/tmpfs_vfsops.c index ffd453c68f2..b0f0e53d799 100644 --- a/sys/tmpfs/tmpfs_vfsops.c +++ b/sys/tmpfs/tmpfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_vfsops.c,v 1.7 2015/01/21 22:26:52 deraadt Exp $ */ +/* $OpenBSD: tmpfs_vfsops.c,v 1.8 2016/01/13 13:01:40 gsoares Exp $ */ /* $NetBSD: tmpfs_vfsops.c,v 1.52 2011/09/27 01:10:43 christos Exp $ */ /* @@ -144,8 +144,6 @@ tmpfs_mount(struct mount *mp, const char *path, void *data, /* Allocate the tmpfs mount structure and fill it. */ tmp = malloc(sizeof(tmpfs_mount_t), M_MISCFSMNT, M_WAITOK); - if (tmp == NULL) - return ENOMEM; tmp->tm_nodes_max = (ino_t)nodes; tmp->tm_nodes_cnt = 0; |