From 872130c593ae2ced03b1168d130c6fccfdd67222 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Thu, 9 Jun 2022 23:56:50 +0100 Subject: Unit: removed a useless assignment. As was pointed out by the cppcheck[0] static code analysis utility there was a useless assignment in nxt_unit_request_read(). The size parameter is passed in by value and was being modified without being used again. [0]: https://cppcheck.sourceforge.io/ --- src/nxt_unit.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/nxt_unit.c b/src/nxt_unit.c index f183ac6e..cd71b918 100644 --- a/src/nxt_unit.c +++ b/src/nxt_unit.c @@ -3075,7 +3075,6 @@ nxt_unit_request_read(nxt_unit_request_info_t *req, void *dst, size_t size) } req->content_length -= res; - size -= res; dst = nxt_pointer_to(dst, res); -- cgit