Commit 68327951 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David Howells

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
Link: default avatarGustavo A. R. Silva <>
Signed-off-by: default avatarDavid Howells <>
parent 4433b691
......@@ -207,13 +207,8 @@ struct afs_cell *afs_lookup_cell(struct afs_net *net,
cell = afs_lookup_cell_rcu(net, name, namesz);
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment