]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:lib: Remove unused code
authorJennifer Sutton <jennifersutton@catalyst.net.nz>
Tue, 20 Jan 2026 21:16:46 +0000 (10:16 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 21 Jan 2026 03:43:35 +0000 (03:43 +0000)
Signed-off-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/lib/sysquotas.c

index 52e5f384b835268797d26ba9834a7b865c7acd28..e68be47f3c9aa105f81266ad79eb444280f5fbc9 100644 (file)
@@ -250,10 +250,7 @@ static int command_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t
        const char *get_quota_command = NULL;
        char **lines = NULL;
        char *line = NULL;
-       const char *p = NULL;
-       char *p2 = NULL;
        int _id = -1;
-       int error = 0;
        char **argl = NULL;
        int ret;
 
@@ -340,11 +337,6 @@ static int command_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t
                 dp->ihardlimit,
                 dp->bsize);
        return 0;
-
-invalid_param:
-       TALLOC_FREE(lines);
-       DBG_ERR("The output of get_quota_command is invalid!\n");
-       return -1;
 }
 
 static int command_set_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dp)