The branch stable/13 has been updated by mckusick:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=bb14579988c5d82a272578e77ea719603b237fb3

commit bb14579988c5d82a272578e77ea719603b237fb3
Author:     Kirk McKusick <mckus...@freebsd.org>
AuthorDate: 2025-01-12 21:51:24 +0000
Commit:     Kirk McKusick <mckus...@freebsd.org>
CommitDate: 2025-01-23 06:44:17 +0000

    Eliminate unneeded variables and computations.
    
    No functional change.
    
    (cherry picked from commit df48361e7792f9a9e6371f95c1228d4af2808d2a)
---
 sys/ufs/ffs/ffs_suspend.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/sys/ufs/ffs/ffs_suspend.c b/sys/ufs/ffs/ffs_suspend.c
index e23e12cc8be4..9e65cddc0d8f 100644
--- a/sys/ufs/ffs/ffs_suspend.c
+++ b/sys/ufs/ffs/ffs_suspend.c
@@ -242,16 +242,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);
@@ -263,7 +259,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);

Reply via email to