[nginx] Slab: style.

Ruslan Ermilov ru at nginx.com
Sat Dec 3 07:06:29 UTC 2016


details:   http://hg.nginx.org/nginx/rev/ea76a3aa18ae
branches:  
changeset: 6807:ea76a3aa18ae
user:      Ruslan Ermilov <ru at nginx.com>
date:      Sat Dec 03 09:55:40 2016 +0300
description:
Slab: style.

Removed redundant parentheses.  No functional changes.

diffstat:

 src/core/ngx_slab.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 75dbab4ea930 -r ea76a3aa18ae src/core/ngx_slab.c
--- a/src/core/ngx_slab.c	Mon Nov 21 16:03:42 2016 +0300
+++ b/src/core/ngx_slab.c	Sat Dec 03 09:55:40 2016 +0300
@@ -211,7 +211,7 @@ ngx_slab_alloc_locked(ngx_slab_pool_t *p
                     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 *p
                 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 *p
                          m & mask;
                          m <<= 1, i++)
                     {
-                        if ((page->slab & m)) {
+                        if (page->slab & m) {
                             continue;
                         }
 



More information about the nginx-devel mailing list