diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2023-03-15 03:48:48 +0000 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2023-04-03 14:53:04 +0100 |
commit | 485205712433611ee9939a869b4f734f824a177a (patch) | |
tree | 8527a9779f6f77bc55a3b04518123273008e9ce1 /pkg/deb/Makefile | |
parent | 8a9e078e5427e2b72e178740f25cbcebb780b225 (diff) | |
download | unit-485205712433611ee9939a869b4f734f824a177a.tar.gz unit-485205712433611ee9939a869b4f734f824a177a.tar.bz2 |
Remove a useless assignment in nxt_mem_zone_alloc_pages().
This was reported by the 'Clang Static Analyzer' as a 'dead nested
assignment'.
We assign prev_size then check if it's != 0 and if true we then set
prev_pages to page_size right shifted by two at the same time setting
prev_size to be right shifted by two (>>=), however page_size is never
used again so no need to set it here.
Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'pkg/deb/Makefile')
0 files changed, 0 insertions, 0 deletions