]> git.kaiwu.me - nginx.git/commitdiff
Slab: style.
authorRuslan Ermilov <ru@nginx.com>
Sat, 3 Dec 2016 06:55:40 +0000 (09:55 +0300)
committerRuslan Ermilov <ru@nginx.com>
Sat, 3 Dec 2016 06:55:40 +0000 (09:55 +0300)
Removed redundant parentheses.  No functional changes.

src/core/ngx_slab.c

index 56e7765c0f36572fe706397489989471406beec0..9d257f364a78df22fa430318754eddeb3ae02fb7 100644 (file)
@@ -211,7 +211,7 @@ ngx_slab_alloc_locked(ngx_slab_pool_t *pool, size_t size)
                     if (bitmap[n] != NGX_SLAB_BUSY) {
 
                         for (m = 1, i = 0; m; m <<= 1, i++) {
-                            if ((bitmap[n] & m)) {
+                            if (bitmap[n] & m) {
                                 continue;
                             }
 
@@ -255,7 +255,7 @@ ngx_slab_alloc_locked(ngx_slab_pool_t *pool, size_t size)
                 if (page->slab != NGX_SLAB_BUSY) {
 
                     for (m = 1, i = 0; m; m <<= 1, i++) {
-                        if ((page->slab & m)) {
+                        if (page->slab & m) {
                             continue;
                         }
 
@@ -297,7 +297,7 @@ ngx_slab_alloc_locked(ngx_slab_pool_t *pool, size_t size)
                          m & mask;
                          m <<= 1, i++)
                     {
-                        if ((page->slab & m)) {
+                        if (page->slab & m) {
                             continue;
                         }