Skip to contentSkip to conversation

staging: lustre: ldlm: ldlm_resource.c removed unecessary braces

PATCH New Anil Belur 1 participant 1 message Jun 19, 2014 Staging

lore
Share & tools
lore

Anil Belur

author
#0 lore raw

PATCH 1/1 staging: lustre: ldlm: ldlm_resource.c removed unecessary braces

From: Anil Belur <[email protected]>

- this fixed the "WARNING: braces {} are not necessary for single statement blocks"

---
 drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/lustre/lustre/ldlm/ldlm_resource.c +2 -4
index c55d72f..e5171da 100644
@@ -854,9 +854,8 @@ void ldlm_namespace_free_prior(struct ldlm_namespace *ns,
 {
 	int rc;
 
-	if (!ns) {
+	if (!ns)
 		return;
-	}
 
 	spin_lock(&ns->ns_lock);
 	ns->ns_stopping = 1;
@@ -888,9 +887,8 @@ void ldlm_namespace_free_prior(struct ldlm_namespace *ns,
  */
 void ldlm_namespace_free_post(struct ldlm_namespace *ns)
 {
-	if (!ns) {
+	if (!ns)
 		return;
-	}
 
 	/* Make sure that nobody can find this ns in its list. */
 	ldlm_namespace_unregister(ns, ns->ns_client);
Signature · 1 line
1.9.0