Commit bb0581f0 authored by Colin Ian King's avatar Colin Ian King Committed by Ilya Dryomov

ceph: remove unused and redundant variable dropping

Variable dropping is set but never read and hence is redundant
and can be removed. Cleans up clang warning:

  fs/ceph/caps.c:1170:2: warning: Value stored to 'dropping' is never read
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 18370b36
...@@ -1160,7 +1160,7 @@ static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap, ...@@ -1160,7 +1160,7 @@ static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap,
struct ceph_inode_info *ci = cap->ci; struct ceph_inode_info *ci = cap->ci;
struct inode *inode = &ci->vfs_inode; struct inode *inode = &ci->vfs_inode;
struct cap_msg_args arg; struct cap_msg_args arg;
int held, revoking, dropping; int held, revoking;
int wake = 0; int wake = 0;
int delayed = 0; int delayed = 0;
int ret; int ret;
...@@ -1168,7 +1168,6 @@ static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap, ...@@ -1168,7 +1168,6 @@ static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap,
held = cap->issued | cap->implemented; held = cap->issued | cap->implemented;
revoking = cap->implemented & ~cap->issued; revoking = cap->implemented & ~cap->issued;
retain &= ~revoking; retain &= ~revoking;
dropping = cap->issued & ~retain;
dout("__send_cap %p cap %p session %p %s -> %s (revoking %s)\n", dout("__send_cap %p cap %p session %p %s -> %s (revoking %s)\n",
inode, cap, cap->session, inode, cap, cap->session,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment