From 1c349edbc0a742ecc5bca618be93573c99ff75de Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 18 Nov 2015 22:10:03 +0000 Subject: [PATCH] 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 --- scst/src/scst_pres.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/src/scst_pres.c b/scst/src/scst_pres.c index 8ce467d6e..63e9b3f7a 100644 --- a/scst/src/scst_pres.c +++ b/scst/src/scst_pres.c @@ -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);