linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dlm: cleanup send_to_sock routine
@ 2012-08-13  6:29 Ying Xue
  2012-08-13 15:02 ` David Teigland
  0 siblings, 1 reply; 2+ messages in thread
From: Ying Xue @ 2012-08-13  6:29 UTC (permalink / raw)
  To: teigland; +Cc: linux-kernel

Remove unnecessary code form send_to_sock routine.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
---
 fs/dlm/lowcomms.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 5c1b0e3..f8eefe2 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -1358,8 +1358,7 @@ static void send_to_sock(struct connection *con)
 				}
 				cond_resched();
 				goto out;
-			}
-			if (ret <= 0)
+			} else if (ret < 0)
 				goto send_error;
 		}
 
@@ -1376,7 +1375,6 @@ static void send_to_sock(struct connection *con)
 		if (e->len == 0 && e->users == 0) {
 			list_del(&e->list);
 			free_entry(e);
-			continue;
 		}
 	}
 	spin_unlock(&con->writequeue_lock);
@@ -1394,7 +1392,6 @@ out_connect:
 	mutex_unlock(&con->sock_mutex);
 	if (!test_bit(CF_INIT_PENDING, &con->flags))
 		lowcomms_connect_sock(con);
-	return;
 }
 
 static void clean_one_writequeue(struct connection *con)
-- 
1.6.2.3


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

* Re: [PATCH] dlm: cleanup send_to_sock routine
  2012-08-13  6:29 [PATCH] dlm: cleanup send_to_sock routine Ying Xue
@ 2012-08-13 15:02 ` David Teigland
  0 siblings, 0 replies; 2+ messages in thread
From: David Teigland @ 2012-08-13 15:02 UTC (permalink / raw)
  To: Ying Xue; +Cc: linux-kernel

On Mon, Aug 13, 2012 at 02:29:55PM +0800, Ying Xue wrote:

> But I have submitted another patch:
> https://lkml.org/lkml/2012/8/9/668

Yes I got it, to see all the patches I've pushed out, check here:
http://git.kernel.org/gitweb.cgi?p=linux/kernel/git/teigland/linux-dlm.git;a=shortlog;h=refs/heads/next

> Remove unnecessary code form send_to_sock routine.

ok


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

end of thread, other threads:[~2012-08-13 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13  6:29 [PATCH] dlm: cleanup send_to_sock routine Ying Xue
2012-08-13 15:02 ` David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).