summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorKaushik BV <kaushikbv@gluster.com>2010-08-12 04:43:20 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-12 03:55:08 -0700
commitf862864468c9d11d646bdcc347a1121fe75a1917 (patch)
treeeaed85c1bb0ba9e00be7fa0ec6d957d815853698 /xlators
parenta207ab15d43d625b91d0976409c92514e4c77664 (diff)
minor assignement errors reported by clang fixed
Signed-off-by: Kaushik BV <kaushikbv@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1117 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1117
Diffstat (limited to 'xlators')
-rw-r--r--xlators/nfs/server/src/mount3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/mount3.c b/xlators/nfs/server/src/mount3.c
index 97f713a757e..ca94b25b705 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);