mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Eliminate unneeded variables and computations.
No functional change.
(cherry picked from commit df48361e77)
This commit is contained in:
parent
4cdfa4e8db
commit
996fe40e05
1 changed files with 2 additions and 5 deletions
|
|
@ -245,16 +245,12 @@ ffs_susp_unsuspend(struct mount *mp)
|
|||
static void
|
||||
ffs_susp_dtor(void *data)
|
||||
{
|
||||
struct fs *fs;
|
||||
struct ufsmount *ump;
|
||||
struct mount *mp;
|
||||
int error;
|
||||
|
||||
sx_xlock(&ffs_susp_lock);
|
||||
|
||||
mp = (struct mount *)data;
|
||||
ump = VFSTOUFS(mp);
|
||||
fs = ump->um_fs;
|
||||
|
||||
if (ffs_susp_suspended(mp) == 0) {
|
||||
sx_xunlock(&ffs_susp_lock);
|
||||
|
|
@ -266,7 +262,8 @@ ffs_susp_dtor(void *data)
|
|||
|
||||
error = ffs_reload(mp, FFSR_FORCE | FFSR_UNSUSPEND);
|
||||
if (error != 0)
|
||||
panic("failed to unsuspend writes on %s", fs->fs_fsmnt);
|
||||
panic("failed to unsuspend writes on %s",
|
||||
VFSTOUFS(mp)->um_fs->fs_fsmnt);
|
||||
|
||||
ffs_susp_unsuspend(mp);
|
||||
sx_xunlock(&ffs_susp_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue