mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Use temporary variable to avoid double expansion of macro with side effects.
Found by: FlexeLint
This commit is contained in:
parent
c7b24d7dcd
commit
ff81e317d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115486
@ -391,7 +391,10 @@ nullfs_vptofh(vp, fhp)
|
||||
struct vnode *vp;
|
||||
struct fid *fhp;
|
||||
{
|
||||
return VFS_VPTOFH(NULLVPTOLOWERVP(vp), fhp);
|
||||
struct vnode *lvp;
|
||||
|
||||
lvp = NULLVPTOLOWERVP(vp);
|
||||
return VFS_VPTOFH(lvp, fhp);
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user