diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-11-17 16:40:32 -0600 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-11-24 13:55:45 +0000 |
commit | 6832795164d42413fd9ef991f9ef9b30a7248377 (patch) | |
tree | 7c15c7f558bf57e067d26c80f3b0dd4c22fd14c4 /fs | |
parent | 4433b69141864b8c8ba50d0a3ed38341eec9c469 (diff) | |
download | linux-6832795164d42413fd9ef991f9ef9b30a7248377.tar.bz2 |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/afs/cell.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/afs/cell.c b/fs/afs/cell.c index 1858c91169e4..9bb921d120d0 100644 --- a/fs/afs/cell.c +++ b/fs/afs/cell.c @@ -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 |