virtiofs: Remove set but not used variable 'fc'
authorzhengbin <zhengbin13@huawei.com>
Wed, 23 Oct 2019 02:02:49 +0000 (10:02 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 23 Oct 2019 08:25:17 +0000 (10:25 +0200)
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>
fs/fuse/virtio_fs.c

index 2de8fc0d6a24658b214162594e8d08e73b09b8dc..a5c86048b96edb59f85986935206f2c53972a170 100644 (file)
@@ -980,7 +980,6 @@ __releases(fiq->lock)
 {
        unsigned int queue_id = VQ_REQUEST; /* TODO multiqueue */
        struct virtio_fs *fs;
-       struct fuse_conn *fc;
        struct fuse_req *req;
        struct virtio_fs_vq *fsvq;
        int ret;
@@ -993,7 +992,6 @@ __releases(fiq->lock)
        spin_unlock(&fiq->lock);
 
        fs = fiq->priv;
-       fc = fs->vqs[queue_id].fud->fc;
 
        pr_debug("%s: opcode %u unique %#llx nodeid %#llx in.len %u out.len %u\n",
                  __func__, req->in.h.opcode, req->in.h.unique,