Skip to contentSkip to conversation

Staging: lustre: Fix return does not need parantheses

PATCH In review MonamAgarwal 2 participants 2 messages Jan 5, 2014 – Jan 8, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Staging: lustre: Fix return does not need parantheses

This patch fixes the following checkpatch.pl warning in lustre/ldlm/interval_tree.c
ERROR: return is not a function, parentheses are not required

---
 drivers/staging/lustre/lustre/ldlm/interval_tree.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/lustre/ldlm/interval_tree.c +2 -2
index f61bf19..9338203 100644
@@ -578,8 +578,8 @@ EXPORT_SYMBOL(interval_erase);
 static inline int interval_may_overlap(struct interval_node *node,
 					  struct interval_node_extent *ext)
 {
-	return (ext->start <= node->in_max_high &&
-		ext->end >= interval_low(node));
+	return ext->start <= node->in_max_high &&
+		ext->end >= interval_low(node);
 }
 
 /*

--
1.7.9.5

maintainer
#1 lore raw
Quoted 5 lines · MonamAgarwal

This patch fixes the following checkpatch.pl warning in lustre/ldlm/interval_tree.c
ERROR: return is not a function, parentheses are not required

I need a semblance of a "real" name, which usually consists of a first and last name for most places.

thanks,

greg k-h