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/323af2480624
branches:  trunk
changeset: 455017:323af2480624
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 db24df6f0439 -r 323af2480624 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