mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 1/3] Staging: lustre: Fix return does not need parantheses
@ 2014-01-11 20:01 Monam Agarwal
  2014-01-11 20:36 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Monam Agarwal @ 2014-01-11 20:01 UTC (permalink / raw)
  To: gregkh, bergwolf, andreas.dilger, keith.mannthey, oleg.drokin,
	devel, linux-kernel

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

Signed-off-by: Monam Agarwal <monamagarwal123@gmail.com>
---
 drivers/staging/lustre/lustre/ldlm/ldlm_flock.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_flock.c b/drivers/staging/lustre/lustre/ldlm/ldlm_flock.c
index c9aae13..07a2c33 100644
--- a/drivers/staging/lustre/lustre/ldlm/ldlm_flock.c
+++ b/drivers/staging/lustre/lustre/ldlm/ldlm_flock.c
@@ -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,
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2 1/3] Staging: lustre: Fix return does not need parantheses
  2014-01-11 20:01 [PATCH v2 1/3] Staging: lustre: Fix return does not need parantheses Monam Agarwal
@ 2014-01-11 20:36 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2014-01-11 20:36 UTC (permalink / raw)
  To: Monam Agarwal
  Cc: bergwolf, andreas.dilger, keith.mannthey, oleg.drokin, devel,
	linux-kernel

On Sun, Jan 12, 2014 at 01:31:41AM +0530, Monam Agarwal wrote:
> The patch fixes the following checkpatch.pl error in
> lustre/ldlm/ldlm_flock.c
> ERROR: return is not a function, parentheses are not required 
> 
> Signed-off-by: Monam Agarwal <monamagarwal123@gmail.com>

I'm totally confused here.  You have multiple series of patches, sent
with different version numbers, some with the same subjects, and some
not.

I've deleted all of your lustre patches from my queue because of this, I
don't want to apply something incorrectly.

Please step back, take a day, and resend all of your pending patches
that I have not applied for the lustre code, in a single series, so I
know what I should be looking at here.

There's no rush, so please take your time and do your best to keep an
overworked maintainer from getting things wrong.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-11 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-11 20:01 [PATCH v2 1/3] Staging: lustre: Fix return does not need parantheses Monam Agarwal
2014-01-11 20:36 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®