diff options
author | delphij <delphij@FreeBSD.org> | 2005-11-07 18:25:23 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2005-11-07 18:25:23 +0000 |
commit | f69d71b3c8bd45ff98b3eb3f3121394450eefb89 (patch) | |
tree | 438898336f137d357de64f31596b45cf362c2eab /sys/ufs | |
parent | 89671b139b8fb4bf5863bb89483c824bbba7c5ee (diff) | |
download | FreeBSD-src-f69d71b3c8bd45ff98b3eb3f3121394450eefb89.zip FreeBSD-src-f69d71b3c8bd45ff98b3eb3f3121394450eefb89.tar.gz |
Slightly reorganize to reduce duplicated code.
Reviewed by: rwatson
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_extattr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_extattr.c b/sys/ufs/ufs/ufs_extattr.c index 59b15b1..6f6de78 100644 --- a/sys/ufs/ufs/ufs_extattr.c +++ b/sys/ufs/ufs/ufs_extattr.c @@ -544,8 +544,7 @@ ufs_extattr_stop(struct mount *mp, struct thread *td) goto unlock; } - while (LIST_FIRST(&ump->um_extattr.uepm_list) != NULL) { - uele = LIST_FIRST(&ump->um_extattr.uepm_list); + while ((uele = LIST_FIRST(&ump->um_extattr.uepm_list)) != NULL) { ufs_extattr_disable(ump, uele->uele_attrnamespace, uele->uele_attrname, td); } |