diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2016-01-13 13:01:41 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2016-01-13 13:01:41 +0000 |
commit | f9786caa45d0003ded55014bd3a83fd421d79dad (patch) | |
tree | d5050056abb8c853e1e345b7e89a02349b951104 /sys/tmpfs/tmpfs_vfsops.c | |
parent | 3a743bf9caa9fabb3f51c6e43499665bc1355209 (diff) |
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/tmpfs_vfsops.c')
-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; |