lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <542B176E.6000007@gmail.com>
Date:	Tue, 30 Sep 2014 21:49:50 +0100
From:	Paul McQuade <paulmcquad@...il.com>
To:	Andrew Morton <akpm@...ux-foundation.org>,
	Krzysztof HaƂasa 
	<khalasa@...p.pl>,
	Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
	jiri Kosina <jkosina@...e.cz>,
	Hiroshige Sato <sato.vintage@...il.com>,
	Daeseok Youn <daeseok.youn@...il.com>,
	linux-mm <linux-mm@...ck.org>,
	linux-kernel <linux-kernel@...r.kernel.org>,
	Paul McQuade <paulmcquad@...il.com>
Subject: [PATCH] MM: dmapool: Fixed a brace coding style issue

>From 33890970bfffc2bd64b307c41e5c1c92aaba8a2e Mon Sep 17 00:00:00 2001
From: Paul McQuade <paulmcquad@...il.com>
Date: Tue, 30 Sep 2014 21:39:37 +0100
Subject: [PATCH] MM: dmapool: Fixed a brace coding style issue

Removed 3 brace coding style for any arm of this statement

Signed-off-by: Paul McQuade <paulmcquad@...il.com>
---
 mm/dmapool.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/mm/dmapool.c b/mm/dmapool.c
index ba8019b..8b3b050 100644
--- a/mm/dmapool.c
+++ b/mm/dmapool.c
@@ -133,28 +133,27 @@ struct dma_pool *dma_pool_create(const char *name, struct device *dev,
     struct dma_pool *retval;
     size_t allocation;
 
-    if (align == 0) {
+    if (align == 0)
         align = 1;
-    } else if (align & (align - 1)) {
+    else if (align & (align - 1))
         return NULL;
-    }
 
-    if (size == 0) {
+
+    if (size == 0)
         return NULL;
-    } else if (size < 4) {
+    else if (size < 4)
         size = 4;
-    }
+
 
     if ((size % align) != 0)
         size = ALIGN(size, align);
 
     allocation = max_t(size_t, size, PAGE_SIZE);
 
-    if (!boundary) {
+    if (!boundary)
         boundary = allocation;
-    } else if ((boundary < size) || (boundary & (boundary - 1))) {
+    else if ((boundary < size) || (boundary & (boundary - 1)))
         return NULL;
-    }
 
     retval = kmalloc_node(sizeof(*retval), GFP_KERNEL, dev_to_node(dev));
     if (!retval)
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ