Staging: lustre: Fix paranthesis not required around return
authorRashika Kheria <rashika.kheria@gmail.com>
Sat, 26 Oct 2013 10:54:02 +0000 (16:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Oct 2013 03:43:23 +0000 (20:43 -0700)
This patch fixes the following checkpatch.pl warning in lustre/ldlm/ldlm_extent.c-
ERROR: return is not a function, parentheses are not required

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_extent.c

index 7e316637369b71b3039133aaf134db181adfa380..ac5d66aa7f022969fd7e37e6f3cc31f1965a76cc 100644 (file)
@@ -144,7 +144,7 @@ struct ldlm_interval *ldlm_interval_detach(struct ldlm_lock *l)
        l->l_tree_node = NULL;
        list_del_init(&l->l_sl_policy);
 
-       return (list_empty(&n->li_group) ? n : NULL);
+       return list_empty(&n->li_group) ? n : NULL;
 }
 
 static inline int lock_mode_to_index(ldlm_mode_t mode)