aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-10-20 01:55:50 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-10-20 18:29:49 +0000
commit2bd6d910b24343f7678be7482a78fd7d596e6753 (patch)
tree49f391e8da2e2e0afbe45941b4d8fac823c23e21
parent80bca63cf48d0f4f1c6cfc1dace1369947eaaa47 (diff)
downloadsrc-2bd6d910b24343f7678be7482a78fd7d596e6753.tar.gz
src-2bd6d910b24343f7678be7482a78fd7d596e6753.zip
msdosfs_rename: remove write-only variables
Reviewed by: imp, mjg Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32577
-rw-r--r--sys/fs/msdosfs/msdosfs_vnops.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c
index 44026c270f1c..a431190d7089 100644
--- a/sys/fs/msdosfs/msdosfs_vnops.c
+++ b/sys/fs/msdosfs/msdosfs_vnops.c
@@ -941,14 +941,12 @@ msdosfs_rename(struct vop_rename_args *ap)
struct componentname *fcnp, *tcnp;
struct denode *fdip, *fip, *tdip, *tip, *nip;
u_char toname[12], oldname[11];
- u_long from_diroffset, to_diroffset;
+ u_long to_diroffset;
bool checkpath_locked, doingdirectory, newparent;
- u_char to_count;
int error;
u_long cn, pcl, blkoff;
daddr_t bn, wait_scn, scn;
struct msdosfsmount *pmp;
- struct mount *mp;
struct direntry *dotdotp;
struct buf *bp;
@@ -968,7 +966,6 @@ msdosfs_rename(struct vop_rename_args *ap)
/*
* Check for cross-device rename.
*/
- mp = fvp->v_mount;
if (fvp->v_mount != tdvp->v_mount ||
(tvp != NULL && fvp->v_mount != tvp->v_mount)) {
error = EXDEV;
@@ -1031,7 +1028,6 @@ relock:
}
vrele(fvp);
fvp = DETOV(nip);
- from_diroffset = fdip->de_fndoffset;
error = msdosfs_lookup_ino(tdvp, NULL, tcnp, &scn, &blkoff);
if (error != 0 && error != EJUSTRETURN) {
@@ -1077,7 +1073,6 @@ relock:
* Remember direntry place to use for destination
*/
to_diroffset = tdip->de_fndoffset;
- to_count = tdip->de_fndcnt;
/*
* Be sure we are not renaming ".", "..", or an alias of ".". This