From 3c4f143c6e594968c4a877e7b441a30bfdf6bd4f Mon Sep 17 00:00:00 2001 From: rpaulo Date: Thu, 22 Sep 2005 14:04:29 +0000 Subject: [PATCH] Fix bogus if-clause introduced in previous revision. --- sys/ufs/ffs/ffs_vfsops.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 9fb798b03527..9537a01fbfbe 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -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 -__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 @@ ffs_unmount(struct mount *mp, int mntflags, struct proc *p) #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 */