diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-10-22 22:02:49 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2019-10-23 04:25:17 -0400 |
commit | 80da5a809d193c60d090cbdf4fe316781bc07965 (patch) | |
tree | 48120d0b52e1aed5aa13f06bdc2821db4191802b | |
parent | a9bfd9dd3417561d06c81de04f6d6c1e0c9b3d44 (diff) |
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 7ee1e2e631db ("virtiofs: No need to check
fpq->connected state")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-rw-r--r-- | fs/fuse/virtio_fs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c index 2de8fc0d6a24..a5c86048b96e 100644 --- a/fs/fuse/virtio_fs.c +++ b/fs/fuse/virtio_fs.c | |||
@@ -980,7 +980,6 @@ __releases(fiq->lock) | |||
980 | { | 980 | { |
981 | unsigned int queue_id = VQ_REQUEST; /* TODO multiqueue */ | 981 | unsigned int queue_id = VQ_REQUEST; /* TODO multiqueue */ |
982 | struct virtio_fs *fs; | 982 | struct virtio_fs *fs; |
983 | struct fuse_conn *fc; | ||
984 | struct fuse_req *req; | 983 | struct fuse_req *req; |
985 | struct virtio_fs_vq *fsvq; | 984 | struct virtio_fs_vq *fsvq; |
986 | int ret; | 985 | int ret; |
@@ -993,7 +992,6 @@ __releases(fiq->lock) | |||
993 | spin_unlock(&fiq->lock); | 992 | spin_unlock(&fiq->lock); |
994 | 993 | ||
995 | fs = fiq->priv; | 994 | fs = fiq->priv; |
996 | fc = fs->vqs[queue_id].fud->fc; | ||
997 | 995 | ||
998 | pr_debug("%s: opcode %u unique %#llx nodeid %#llx in.len %u out.len %u\n", | 996 | pr_debug("%s: opcode %u unique %#llx nodeid %#llx in.len %u out.len %u\n", |
999 | __func__, req->in.h.opcode, req->in.h.unique, | 997 | __func__, req->in.h.opcode, req->in.h.unique, |