diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-10-15 17:24:57 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-04 20:43:38 +0100 |
commit | 1fea73a86527d7ec463af6ff04b0830e1425ff6c (patch) | |
tree | c3a9057e690ac1b3e783d70612037a30b8dc57f9 /fs/nfs/nfs4client.c | |
parent | SUNRPC: add WARN_ON_ONCE for potential deadlock (diff) | |
download | linux-1fea73a86527d7ec463af6ff04b0830e1425ff6c.tar.xz linux-1fea73a86527d7ec463af6ff04b0830e1425ff6c.zip |
NFS: Get rid of unnecessary asserts
If the nfs_client fails to initialise correctly, then it will
return an error condition.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4client.c')
-rw-r--r-- | fs/nfs/nfs4client.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c index 6bacfde1319a..72717e67b34e 100644 --- a/fs/nfs/nfs4client.c +++ b/fs/nfs/nfs4client.c @@ -713,10 +713,6 @@ static int nfs4_server_common_setup(struct nfs_server *server, struct nfs_fattr *fattr; int error; - BUG_ON(!server->nfs_client); - BUG_ON(!server->nfs_client->rpc_ops); - BUG_ON(!server->nfs_client->rpc_ops->file_inode_ops); - /* data servers support only a subset of NFSv4.1 */ if (is_ds_only_client(server->nfs_client)) return -EPROTONOSUPPORT; |