diff options
author | Benjamin Peterson <benjamin@python.org> | 2022-10-27 16:06:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 16:06:49 (GMT) |
commit | bded5edd9abf7ae6b2874916d70ec29ad209217c (patch) | |
tree | 32905029b45713d26364cdf21e45f0eb5d9ccf94 /Objects/obmalloc.c | |
parent | 723ebe76e787cfa6b08cc9587dd679f3234a1025 (diff) | |
download | cpython-bded5edd9abf7ae6b2874916d70ec29ad209217c.zip cpython-bded5edd9abf7ae6b2874916d70ec29ad209217c.tar.gz cpython-bded5edd9abf7ae6b2874916d70ec29ad209217c.tar.bz2 |
obmalloc: Remove unused variable. (GH-98770)
Diffstat (limited to 'Objects/obmalloc.c')
-rw-r--r-- | Objects/obmalloc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index 1d487d8..449b618 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -3000,7 +3000,6 @@ _PyObject_DebugMallocStats(FILE *out) * will be living in full pools -- would be a shame to miss them. */ for (i = 0; i < maxarenas; ++i) { - uint j; uintptr_t base = arenas[i].address; /* Skip arenas which are not allocated. */ @@ -3019,8 +3018,7 @@ _PyObject_DebugMallocStats(FILE *out) /* visit every pool in the arena */ assert(base <= (uintptr_t) arenas[i].pool_address); - for (j = 0; base < (uintptr_t) arenas[i].pool_address; - ++j, base += POOL_SIZE) { + for (; base < (uintptr_t) arenas[i].pool_address; base += POOL_SIZE) { poolp p = (poolp)base; const uint sz = p->szidx; uint freeblocks; |