Skip to content

Commit 4ec81c3

Browse files
committed
Minor style tweaks
1 parent 1888531 commit 4ec81c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http_server.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ static int http_server_recv(struct socket *sock, char *buf, size_t size)
4848
.msg_controllen = 0,
4949
.msg_flags = 0};
5050
return kernel_recvmsg(sock, &msg, &iov, 1, size, msg.msg_flags);
51-
;
5251
}
5352

5453
static int http_server_send(struct socket *sock, const char *buf, size_t size)
@@ -159,11 +158,13 @@ static int http_server_worker(void *arg)
159158

160159
allow_signal(SIGKILL);
161160
allow_signal(SIGTERM);
161+
162162
buf = kmalloc(RECV_BUFFER_SIZE, GFP_KERNEL);
163163
if (!buf) {
164164
pr_err("can't allocate memory!\n");
165165
return -1;
166166
}
167+
167168
request.socket = socket;
168169
http_parser_init(&parser, HTTP_REQUEST);
169170
parser.data = &request;

0 commit comments

Comments
 (0)