diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-10-15 15:24:57 (GMT) |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-04 19:43:38 (GMT) |
commit | 1fea73a86527d7ec463af6ff04b0830e1425ff6c (patch) | |
tree | c3a9057e690ac1b3e783d70612037a30b8dc57f9 /fs/nfs/nfs4client.c | |
parent | 168e4b39d1afb79a7e3ea6c3bb246b4c82c6bdb9 (diff) | |
download | linux-fsl-qoriq-1fea73a86527d7ec463af6ff04b0830e1425ff6c.tar.xz |
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 6bacfde..72717e6 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; |