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/
This commit is contained in:
Andrew Clayton
2022-06-16 02:01:01 +01:00
committed by Alejandro Colomar
parent 39819143ea
commit 63667e2f9c

View File

@@ -3076,7 +3076,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);