From f862864468c9d11d646bdcc347a1121fe75a1917 Mon Sep 17 00:00:00 2001 From: Kaushik BV Date: Thu, 12 Aug 2010 04:43:20 +0000 Subject: minor assignement errors reported by clang fixed Signed-off-by: Kaushik BV Signed-off-by: Anand V. Avati BUG: 1117 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1117 --- xlators/nfs/server/src/mount3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xlators/nfs/server/src/mount3.c') diff --git a/xlators/nfs/server/src/mount3.c b/xlators/nfs/server/src/mount3.c index 97f713a75..ca94b25b7 100644 --- a/xlators/nfs/server/src/mount3.c +++ b/xlators/nfs/server/src/mount3.c @@ -727,7 +727,6 @@ mnt3svc_mnt (rpcsvc_request_t *req) ret = mnt3_check_client_net (ms, req, exp->vol); if (ret == -1) { mntstat = MNT3ERR_ACCES; - ret = -1; gf_log (GF_MNT, GF_LOG_DEBUG, "Client mount not allowed"); goto rpcerr; } @@ -871,7 +870,7 @@ mnt3svc_dump (rpcsvc_request_t *req) sfunc = (mnt3_serializer)xdr_serialize_mountlist; mlist = mnt3svc_build_mountlist (ms, &ret); arg = mlist; - sfunc = (mnt3_serializer)xdr_serialize_mountlist; + if (!mlist) { if (ret != 0) { nfs_rpcsvc_request_seterr (req, SYSTEM_ERR); -- cgit