Skip to content

Commit 80da5a8

Browse files
zhengbin13Miklos Szeredi
authored andcommitted
virtiofs: Remove set but not used variable 'fc'
Fixes gcc '-Wunused-but-set-variable' warning: fs/fuse/virtio_fs.c: In function virtio_fs_wake_pending_and_unlock: fs/fuse/virtio_fs.c:983:20: warning: variable fc set but not used [-Wunused-but-set-variable] It is not used since commit 7ee1e2e ("virtiofs: No need to check fpq->connected state") Reported-by: Hulk Robot <[email protected]> Signed-off-by: zhengbin <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
1 parent a9bfd9d commit 80da5a8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/fuse/virtio_fs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,6 @@ __releases(fiq->lock)
980980
{
981981
unsigned int queue_id = VQ_REQUEST; /* TODO multiqueue */
982982
struct virtio_fs *fs;
983-
struct fuse_conn *fc;
984983
struct fuse_req *req;
985984
struct virtio_fs_vq *fsvq;
986985
int ret;
@@ -993,7 +992,6 @@ __releases(fiq->lock)
993992
spin_unlock(&fiq->lock);
994993

995994
fs = fiq->priv;
996-
fc = fs->vqs[queue_id].fud->fc;
997995

998996
pr_debug("%s: opcode %u unique %#llx nodeid %#llx in.len %u out.len %u\n",
999997
__func__, req->in.h.opcode, req->in.h.unique,

0 commit comments

Comments
 (0)