staging: lustre: ldlm: ldlm_resource.c removed unecessary braces
authorAnil Belur <askb23@gmail.com>
Thu, 19 Jun 2014 15:35:48 +0000 (01:35 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 00:22:24 +0000 (17:22 -0700)
- this fixed the "WARNING: braces {} are not necessary for
  single statement blocks"

Signed-off-by: Anil Belur <askb23@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_resource.c

index c55d72f..e5171da 100644 (file)
@@ -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);