Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/tmpfs remove an always false check and its' "This can...
details: https://anonhg.NetBSD.org/src/rev/467c0b1e18f7
branches: trunk
changeset: 464390:467c0b1e18f7
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Oct 04 12:34:40 2019 +0000
description:
remove an always false check and its' "This can never happen?" comment.
diffstat:
sys/fs/tmpfs/tmpfs_vfsops.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (29 lines):
diff -r 2b9f363ca22d -r 467c0b1e18f7 sys/fs/tmpfs/tmpfs_vfsops.c
--- a/sys/fs/tmpfs/tmpfs_vfsops.c Fri Oct 04 12:29:05 2019 +0000
+++ b/sys/fs/tmpfs/tmpfs_vfsops.c Fri Oct 04 12:34:40 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tmpfs_vfsops.c,v 1.74 2019/01/01 10:06:54 hannken Exp $ */
+/* $NetBSD: tmpfs_vfsops.c,v 1.75 2019/10/04 12:34:40 mrg Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tmpfs_vfsops.c,v 1.74 2019/01/01 10:06:54 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tmpfs_vfsops.c,v 1.75 2019/10/04 12:34:40 mrg Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -132,10 +132,6 @@
if (args->ta_root_uid == VNOVAL || args->ta_root_gid == VNOVAL)
return EINVAL;
- /* This can never happen? */
- if ((args->ta_root_mode & ALLPERMS) == VNOVAL)
- return EINVAL;
-
/* Get the memory usage limit for this file-system. */
if (args->ta_size_max < PAGE_SIZE) {
memlimit = UINT64_MAX;
Home |
Main Index |
Thread Index |
Old Index