mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[net] drop 'size' argument of sock_recvmsg()
all callers have it equal to msg_data_left(msg). Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
f55532a0c0
commit
2da62906b1
3 changed files with 13 additions and 18 deletions
|
|
@ -1283,9 +1283,8 @@ static int iscsit_do_rx_data(
|
|||
iov_iter_kvec(&msg.msg_iter, READ | ITER_KVEC,
|
||||
count->iov, count->iov_count, data);
|
||||
|
||||
while (total_rx < data) {
|
||||
rx_loop = sock_recvmsg(conn->sock, &msg,
|
||||
(data - total_rx), MSG_WAITALL);
|
||||
while (msg_data_left(&msg)) {
|
||||
rx_loop = sock_recvmsg(conn->sock, &msg, MSG_WAITALL);
|
||||
if (rx_loop <= 0) {
|
||||
pr_debug("rx_loop: %d total_rx: %d\n",
|
||||
rx_loop, total_rx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue