From c4bdba97b4b09196765bb3a486b16294c28772b8 Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Fri, 9 Oct 2015 11:32:52 +0000 Subject: [PATCH] s3.lib: Remove invalid switch case from sysquotas_nfs getquota_rslt structure from rquota.h defines the enum named status whose values start from 1. But in sysquotas_nfs.c we have an invalid check for status 0. This change is to remove that particular switch case. Signed-off-by: Anoop C S Reviewed-by: Michael Adam Reviewed-by: Jeremy Allison --- source3/lib/sysquotas_nfs.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/source3/lib/sysquotas_nfs.c b/source3/lib/sysquotas_nfs.c index 58eedf0a52e..4b37e34e624 100644 --- a/source3/lib/sysquotas_nfs.c +++ b/source3/lib/sysquotas_nfs.c @@ -211,19 +211,12 @@ int sys_get_nfs_quota(const char *path, const char *bdev, /* * gqr.status returns - * 0 if the rpc call fails, * 1 if quotas exist, * 2 if there is no quota set, and * 3 if no permission to get the quota. */ switch (gq_rslt.GQR_STATUS) { - case 0: - DEBUG(3, ("sys_get_nfs_quotas: Remote Quotas Failed! " - "Error '%i'\n", gq_rslt.GQR_STATUS)); - ret = -1; - goto out; - case 1: DEBUG(10, ("sys_get_nfs_quotas: Good quota data\n")); dp->bsize = (uint64_t)gq_rslt.GQR_RQUOTA.rq_bsize; -- 2.11.4.GIT