mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 21:53:31 -06:00
Slab: style.
Removed redundant parentheses. No functional changes.
This commit is contained in:
parent
433fdbf8b6
commit
3df657f6fd
@ -211,7 +211,7 @@ ngx_slab_alloc_locked(ngx_slab_pool_t *pool, size_t size)
|
|||||||
if (bitmap[n] != NGX_SLAB_BUSY) {
|
if (bitmap[n] != NGX_SLAB_BUSY) {
|
||||||
|
|
||||||
for (m = 1, i = 0; m; m <<= 1, i++) {
|
for (m = 1, i = 0; m; m <<= 1, i++) {
|
||||||
if ((bitmap[n] & m)) {
|
if (bitmap[n] & m) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ ngx_slab_alloc_locked(ngx_slab_pool_t *pool, size_t size)
|
|||||||
if (page->slab != NGX_SLAB_BUSY) {
|
if (page->slab != NGX_SLAB_BUSY) {
|
||||||
|
|
||||||
for (m = 1, i = 0; m; m <<= 1, i++) {
|
for (m = 1, i = 0; m; m <<= 1, i++) {
|
||||||
if ((page->slab & m)) {
|
if (page->slab & m) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -297,7 +297,7 @@ ngx_slab_alloc_locked(ngx_slab_pool_t *pool, size_t size)
|
|||||||
m & mask;
|
m & mask;
|
||||||
m <<= 1, i++)
|
m <<= 1, i++)
|
||||||
{
|
{
|
||||||
if ((page->slab & m)) {
|
if (page->slab & m) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user