提交 9c5bef58 编写于 作者: Y Ying Xue 提交者: David Teigland

dlm: cleanup send_to_sock routine

Remove unnecessary code form send_to_sock routine.
Signed-off-by: NYing Xue <ying.xue@windriver.com>
Signed-off-by: NDavid Teigland <teigland@redhat.com>
上级 4dd40f0c
......@@ -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 @@ static void send_to_sock(struct connection *con)
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册