vfs_gpfs: Remove discard_const_p() from gpfswrap_quotactl() calls
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>
Tue, 28 Jan 2020 14:42:03 +0000 (15:42 +0100)
committerChristof Schmitt <cs@samba.org>
Mon, 3 Feb 2020 21:53:05 +0000 (21:53 +0000)
Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
Reviewed-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Mon Feb  3 21:53:05 UTC 2020 on sn-devel-184

source3/modules/vfs_gpfs.c

index dd2725973c544b480debe1f1892d8dcd88867869..115459bd15d674d3c0ceb922d6073f63e0950b53 100644 (file)
@@ -2310,8 +2310,7 @@ static int get_gpfs_quota(const char *pathname, int type, int id,
 {
        int ret;
 
-       ret = gpfswrap_quotactl(discard_const_p(char, pathname),
-                               GPFS_QCMD(Q_GETQUOTA, type), id, qi);
+       ret = gpfswrap_quotactl(pathname, GPFS_QCMD(Q_GETQUOTA, type), id, qi);
 
        if (ret) {
                if (errno == GPFS_E_NO_QUOTA_INST) {