Skip to contentSkip to conversation

Staging: lustre: Fix return does not need parantheses

PATCH Superseded Monam Agarwal 1 participant 1 message Jan 11, 2014 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 Staging: lustre: Fix return does not need parantheses

This fixes the following checkpatch error in lustre/ldlm/ldlm_flock.c
ERROR: return is not a function, parentheses are not required

---
 drivers/staging/lustre/lustre/ldlm/ldlm_flock.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/lustre/lustre/ldlm/ldlm_flock.c +4 -4
index c9aae13..07a2c33 100644
@@ -81,18 +81,18 @@ int ldlm_flock_blocking_ast(struct ldlm_lock *lock, struct ldlm_lock_desc *desc,
 static inline int
 ldlm_same_flock_owner(struct ldlm_lock *lock, struct ldlm_lock *new)
 {
-	return((new->l_policy_data.l_flock.owner ==
+	return (new->l_policy_data.l_flock.owner ==
 		lock->l_policy_data.l_flock.owner) &&
-	       (new->l_export == lock->l_export));
+	       (new->l_export == lock->l_export);
 }
 
 static inline int
 ldlm_flocks_overlap(struct ldlm_lock *lock, struct ldlm_lock *new)
 {
-	return((new->l_policy_data.l_flock.start <=
+	return (new->l_policy_data.l_flock.start <=
 		lock->l_policy_data.l_flock.end) &&
 	       (new->l_policy_data.l_flock.end >=
-		lock->l_policy_data.l_flock.start));
+		lock->l_policy_data.l_flock.start);
 }
 
 static inline void ldlm_flock_blocking_link(struct ldlm_lock *req,
Signature · 1 line
1.7.9.5