[PATCH 11/11] Unit: removed a useless assignment.
Andrew Clayton
andrew at digital-domain.net
Thu Jun 16 01:01:01 UTC 2022
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 9baa680..fd086b2 100644
--- a/src/nxt_unit.c
+++ b/src/nxt_unit.c
@@ -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);
--
2.36.1
More information about the unit
mailing list