summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul McQuade <paulmcquad@gmail.com>2014-10-09 15:29:11 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-09 22:26:00 -0400
commitbaa2ef83981c71ceb00f68fbdac323253c2c3e42 (patch)
treeb708e0dab85ec5d5b35b969f8912cc601c4de7cc
parent25acde317354997bb945892189f32ffb31b7379b (diff)
mm/dmapool.c: fixed a brace coding style issue
Remove 3 brace coding style for any arm of this statement Signed-off-by: Paul McQuade <paulmcquad@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--mm/dmapool.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/mm/dmapool.c b/mm/dmapool.c
index 2372ed5a33d..fd5fe4342e9 100644
--- a/mm/dmapool.c
+++ b/mm/dmapool.c
@@ -135,28 +135,25 @@ struct dma_pool *dma_pool_create(const char *name, struct device *dev,
size_t allocation;
bool empty = false;
- 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)