Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs Fix bogus if-clause introduced in previous revis...



details:   https://anonhg.NetBSD.org/src/rev/17168aff9cec
branches:  trunk
changeset: 584522:17168aff9cec
user:      rpaulo <rpaulo%NetBSD.org@localhost>
date:      Thu Sep 22 14:04:29 2005 +0000

description:
Fix bogus if-clause introduced in previous revision.

diffstat:

 sys/ufs/ffs/ffs_vfsops.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r b92589713007 -r 17168aff9cec sys/ufs/ffs/ffs_vfsops.c
--- a/sys/ufs/ffs/ffs_vfsops.c  Thu Sep 22 13:50:55 2005 +0000
+++ b/sys/ufs/ffs/ffs_vfsops.c  Thu Sep 22 14:04:29 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vfsops.c,v 1.172 2005/09/22 13:50:55 rpaulo Exp $  */
+/*     $NetBSD: ffs_vfsops.c,v 1.173 2005/09/22 14:04:29 rpaulo Exp $  */
 
 /*
  * Copyright (c) 1989, 1991, 1993, 1994
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.172 2005/09/22 13:50:55 rpaulo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.173 2005/09/22 14:04:29 rpaulo Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -1143,10 +1143,11 @@
 #ifdef UFS_EXTATTR
        if (ump->um_fstype == UFS1) {
                error = ufs_extattr_stop(mp, p);
-               if (error && error != EOPNOTSUPP)
-                       printf("%s: ufs_extattr_stop returned %d\n",
-                           fs->fs_fsmnt, error);
-               else
+               if (error) {
+                       if (error != EOPNOTSUPP)
+                               printf("%s: ufs_extattr_stop returned %d\n",
+                                   fs->fs_fsmnt, error);
+               } else
                        ufs_extattr_uepm_destroy(&ump->um_extattr);
        }
 #endif /* UFS_EXTATTR */



Home | Main Index | Thread Index | Old Index