Skip to contentSkip to conversation

afs: cell: Remove unnecessary code in afs_lookup_cell

PATCH Applied Gustavo A. R. Silva 2 participants 2 messages Nov 17, 2017 – Nov 20, 2017 Afs filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 afs: cell: Remove unnecessary code in afs_lookup_cell

Due to recent changes this piece of code is no longer needed.

Addresses-Coverity-ID: 1462033

---
 fs/afs/cell.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
fs/afs/cell.c +1 -6
index 1858c91..9bb921d 100644
@@ -207,13 +207,8 @@ struct afs_cell *afs_lookup_cell(struct afs_net *net,
 		rcu_read_lock();
 		cell = afs_lookup_cell_rcu(net, name, namesz);
 		rcu_read_unlock();
-		if (!IS_ERR(cell)) {
-			if (excl) {
-				afs_put_cell(net, cell);
-				return ERR_PTR(-EEXIST);
-			}
+		if (!IS_ERR(cell))
 			goto wait_for_cell;
-		}
 	}
 
 	/* Assume we're probably going to create a cell and preallocate and
Signature · 1 line
2.7.4