summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorPiotr Sikora <piotrsikora@google.com>2016-06-22 13:47:54 -0700
committerPiotr Sikora <piotrsikora@google.com>2016-06-22 13:47:54 -0700
commite0b0fa6bf55df8c9de0f89dceff0e1b32860a348 (patch)
treefa7f428f0412d331e6b20416bc6f53ec3f8051e2 /src
parenta6048c0e1e344e79c6e6b7149688d23a1d5d5745 (diff)
downloadnginx-e0b0fa6bf55df8c9de0f89dceff0e1b32860a348.tar.gz
nginx-e0b0fa6bf55df8c9de0f89dceff0e1b32860a348.tar.bz2
HTTP/2: style.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/http/v2/ngx_http_v2_filter_module.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/http/v2/ngx_http_v2_filter_module.c b/src/http/v2/ngx_http_v2_filter_module.c
index acd049613..39ff10301 100644
--- a/src/http/v2/ngx_http_v2_filter_module.c
+++ b/src/http/v2/ngx_http_v2_filter_module.c
@@ -974,12 +974,11 @@ static ngx_http_v2_out_frame_t *
ngx_http_v2_filter_get_data_frame(ngx_http_v2_stream_t *stream,
size_t len, ngx_chain_t *first, ngx_chain_t *last)
{
- u_char flags;
- ngx_buf_t *buf;
- ngx_chain_t *cl;
+ u_char flags;
+ ngx_buf_t *buf;
+ ngx_chain_t *cl;
ngx_http_v2_out_frame_t *frame;
-
frame = stream->free_frames;
if (frame) {
@@ -1007,7 +1006,7 @@ ngx_http_v2_filter_get_data_frame(ngx_http_v2_stream_t *stream,
buf = cl->buf;
- if (!buf->start) {
+ if (buf->start == NULL) {
buf->start = ngx_palloc(stream->request->pool,
NGX_HTTP_V2_FRAME_HEADER_SIZE);
if (buf->start == NULL) {
@@ -1182,7 +1181,6 @@ ngx_http_v2_data_frame_handler(ngx_http_v2_connection_t *h2c,
ngx_http_v2_stream_t *stream;
stream = frame->stream;
-
cl = frame->first;
if (cl->buf->tag == (ngx_buf_tag_t) &ngx_http_v2_module) {