mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
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: https://lkml.kernel.org/r/4923.1510957307@warthog.procyon.org.uk Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
parent
4433b69141
commit
6832795164
|
@ -207,14 +207,9 @@ struct afs_cell *afs_lookup_cell(struct afs_net *net,
|
||||||
rcu_read_lock();
|
rcu_read_lock();
|
||||||
cell = afs_lookup_cell_rcu(net, name, namesz);
|
cell = afs_lookup_cell_rcu(net, name, namesz);
|
||||||
rcu_read_unlock();
|
rcu_read_unlock();
|
||||||
if (!IS_ERR(cell)) {
|
if (!IS_ERR(cell))
|
||||||
if (excl) {
|
|
||||||
afs_put_cell(net, cell);
|
|
||||||
return ERR_PTR(-EEXIST);
|
|
||||||
}
|
|
||||||
goto wait_for_cell;
|
goto wait_for_cell;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* Assume we're probably going to create a cell and preallocate and
|
/* Assume we're probably going to create a cell and preallocate and
|
||||||
* mostly set up a candidate record. We can then use this to stash the
|
* mostly set up a candidate record. We can then use this to stash the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user