From: Anil Belur Date: Thu, 19 Jun 2014 15:35:48 +0000 (+1000) Subject: staging: lustre: ldlm: ldlm_resource.c removed unecessary braces X-Git-Tag: firefly_0821_release~176^2~3491^2~1690 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bf050e55a3510eed6faf68dc277b0ef62ed805b1;p=firefly-linux-kernel-4.4.55.git staging: lustre: ldlm: ldlm_resource.c removed unecessary braces - this fixed the "WARNING: braces {} are not necessary for single statement blocks" Signed-off-by: Anil Belur Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c b/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c index c55d72f79b26..e5171da18cfa 100644 --- a/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c @@ -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);