mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04: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
2 changed files with 7 additions and 2 deletions
|
|
@ -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 a new issue