From 2ebd6ca61ce9d49352ee0135f6ed05a24c08a505 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 31 May 2003 18:46:45 +0000 Subject: Use temporary variable to avoid double expansion of macro with side effects. Found by: FlexeLint --- sys/fs/umapfs/umap_vfsops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/fs/umapfs') diff --git a/sys/fs/umapfs/umap_vfsops.c b/sys/fs/umapfs/umap_vfsops.c index 17bee46..5fb2d01 100644 --- a/sys/fs/umapfs/umap_vfsops.c +++ b/sys/fs/umapfs/umap_vfsops.c @@ -418,8 +418,10 @@ umapfs_vptofh(vp, fhp) struct vnode *vp; struct fid *fhp; { + struct vnode *lvp; - return (VFS_VPTOFH(UMAPVPTOLOWERVP(vp), fhp)); + lvp = UMAPVPTOLOWERVP(vp); + return (VFS_VPTOFH(lvp, fhp)); } static int -- cgit v1.1