diff options
author | Ying Xue <ying.xue@windriver.com> | 2012-08-13 14:29:55 +0800 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2012-08-13 10:03:18 -0500 |
commit | 9c5bef5849c9fde1a37ac005299f759440cbaf4c (patch) | |
tree | 180b79ac5486f097feb5b15f53afb64c7c1eb14e /fs/dlm/lowcomms.c | |
parent | 4dd40f0cd99a3500c6df80eb8f537678559c761e (diff) | |
download | linux-9c5bef5849c9fde1a37ac005299f759440cbaf4c.tar.gz linux-9c5bef5849c9fde1a37ac005299f759440cbaf4c.tar.bz2 linux-9c5bef5849c9fde1a37ac005299f759440cbaf4c.zip |
dlm: cleanup send_to_sock routine
Remove unnecessary code form send_to_sock routine.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lowcomms.c')
-rw-r--r-- | 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 3637f3f18824..331ea4f94efd 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c @@ -1486,8 +1486,7 @@ static void send_to_sock(struct connection *con) } cond_resched(); goto out; - } - if (ret <= 0) + } else if (ret < 0) goto send_error; } @@ -1504,7 +1503,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); @@ -1522,7 +1520,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) |