diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-10-15 11:24:57 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-04 14:43:38 -0500 |
commit | 1fea73a86527d7ec463af6ff04b0830e1425ff6c (patch) | |
tree | c3a9057e690ac1b3e783d70612037a30b8dc57f9 /fs/nfs/nfs4client.c | |
parent | 168e4b39d1afb79a7e3ea6c3bb246b4c82c6bdb9 (diff) |
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, | |||
713 | struct nfs_fattr *fattr; | 713 | struct nfs_fattr *fattr; |
714 | int error; | 714 | int error; |
715 | 715 | ||
716 | BUG_ON(!server->nfs_client); | ||
717 | BUG_ON(!server->nfs_client->rpc_ops); | ||
718 | BUG_ON(!server->nfs_client->rpc_ops->file_inode_ops); | ||
719 | |||
720 | /* data servers support only a subset of NFSv4.1 */ | 716 | /* data servers support only a subset of NFSv4.1 */ |
721 | if (is_ds_only_client(server->nfs_client)) | 717 | if (is_ds_only_client(server->nfs_client)) |
722 | return -EPROTONOSUPPORT; | 718 | return -EPROTONOSUPPORT; |