scst_pres: Suppress a compiler warning when building against a kernel with no DLM support

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6696 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-11-18 22:10:03 +00:00
parent 96bdede086
commit 1c349edbc0

View File

@@ -1192,11 +1192,12 @@ int scst_pr_set_cluster_mode(struct scst_device *dev, bool cluster_mode,
dev->virt_name, cluster_mode, res);
dev->cl_ops = &scst_no_dlm_cl_ops;
}
out:
#else
res = cluster_mode ? -ENOTSUPP : 0;
#endif
out:
return res;
}
EXPORT_SYMBOL(scst_pr_set_cluster_mode);