projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dd40f0
)
dlm: cleanup send_to_sock routine
author
Ying Xue
<
[email protected]
>
Mon, 13 Aug 2012 06:29:55 +0000
(14:29 +0800)
committer
David Teigland
<
[email protected]
>
Mon, 13 Aug 2012 15:03:18 +0000
(10:03 -0500)
Remove unnecessary code form send_to_sock routine.
Signed-off-by: Ying Xue <
[email protected]
>
Signed-off-by: David Teigland <
[email protected]
>
fs/dlm/lowcomms.c
patch
|
blob
|
history
diff --git
a/fs/dlm/lowcomms.c
b/fs/dlm/lowcomms.c
index 3637f3f1882498d49200571f164507f850c3ff91..331ea4f94efd2b3f0479ea03d36485573081adc7 100644
(file)
--- 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)