Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/mount remove impossible test.



details:   https://anonhg.NetBSD.org/src/rev/51bf86267891
branches:  trunk
changeset: 1026799:51bf86267891
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 07 14:31:13 2021 +0000

description:
remove impossible test.

diffstat:

 sbin/mount/mount.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1a97d7cb9e5c -r 51bf86267891 sbin/mount/mount.c
--- a/sbin/mount/mount.c        Tue Dec 07 10:39:33 2021 +0000
+++ b/sbin/mount/mount.c        Tue Dec 07 14:31:13 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount.c,v 1.106 2021/12/02 13:26:39 christos Exp $     */
+/*     $NetBSD: mount.c,v 1.107 2021/12/07 14:31:13 christos Exp $     */
 
 /*
  * Copyright (c) 1980, 1989, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)mount.c    8.25 (Berkeley) 5/8/95";
 #else
-__RCSID("$NetBSD: mount.c,v 1.106 2021/12/02 13:26:39 christos Exp $");
+__RCSID("$NetBSD: mount.c,v 1.107 2021/12/07 14:31:13 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -743,7 +743,7 @@
        if (ioctl(fd, DIOCGWEDGEINFO, &dkw) == 0) {
                /* Yup, this is easy. */
                close(fd);
-               if (dkw.dkw_ptype && *dkw.dkw_ptype)
+               if (*dkw.dkw_ptype)
                        return dkw.dkw_ptype;
                return NULL;
        }



Home | Main Index | Thread Index | Old Index