Skip to contentSkip to conversation

ceph: cleanup: remove unused assignement

PATCH In review Dan Carpenter 2 participants 2 messages May 7, 2010 Ceph client

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ceph: cleanup: remove unused assignement

We don't ever use "dirty" so we can remove it.

fs/ceph/caps.c +1 -2
index 0c16818..a8db1a6 100644
@@ -1711,10 +1711,9 @@ out_unlocked:
 static int caps_are_flushed(struct inode *inode, unsigned tid)
 {
 	struct ceph_inode_info *ci = ceph_inode(inode);
-	int dirty, i, ret = 1;
+	int i, ret = 1;
 
 	spin_lock(&inode->i_lock);
-	dirty = __ceph_caps_dirty(ci);
 	for (i = 0; i < CEPH_CAP_BITS; i++)
 		if ((ci->i_flushing_caps & (1 << i)) &&
 		    ci->i_cap_flush_tid[i] <= tid) {
#1 lore raw
Quoted 10 lines · Dan Carpenter

We don't ever use "dirty" so we can remove it.

fs/ceph/caps.c +0 -0
index 0c16818..a8db1a6 100644
@@ -1711,10 +1711,9 @@ out_unlocked:
 static int caps_are_flushed(struct inode *inode, unsigned tid)

fs/ceph/caps.c out_unlocked: · line 1719

Quoted 10 lines
fs/ceph/caps.c +1 -2
 {
 	struct ceph_inode_info *ci = ceph_inode(inode);
-	int dirty, i, ret = 1;
+	int i, ret = 1;
 
 	spin_lock(&inode->i_lock);
-	dirty = __ceph_caps_dirty(ci);
 	for (i = 0; i < CEPH_CAP_BITS; i++)
 		if ((ci->i_flushing_caps & (1 << i)) &&
 		    ci->i_cap_flush_tid[i] <= tid) {

Queued up for the 2.6.35 window.

Thanks!
sage