summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/socket.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/socket.c b/net/socket.c
index a00851f981db..1230704cd9ca 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -775,8 +775,6 @@ static ssize_t sock_aio_write(struct kiocb *iocb, const char __user *ubuf,
if (pos != 0)
return -ESPIPE;
- if (count == 0) /* Match SYS5 behaviour */
- return 0;
x = alloc_sock_iocb(iocb, (void __user *)ubuf, count, &siocb);
if (!x)