Commit baa2ef83 authored by Paul McQuade's avatar Paul McQuade Committed by Linus Torvalds

mm/dmapool.c: fixed a brace coding style issue

Remove 3 brace coding style for any arm of this statement
Signed-off-by: default avatarPaul McQuade <paulmcquad@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 25acde31
...@@ -135,28 +135,25 @@ struct dma_pool *dma_pool_create(const char *name, struct device *dev, ...@@ -135,28 +135,25 @@ struct dma_pool *dma_pool_create(const char *name, struct device *dev,
size_t allocation; size_t allocation;
bool empty = false; bool empty = false;
if (align == 0) { if (align == 0)
align = 1; align = 1;
} else if (align & (align - 1)) { else if (align & (align - 1))
return NULL; return NULL;
}
if (size == 0) { if (size == 0)
return NULL; return NULL;
} else if (size < 4) { else if (size < 4)
size = 4; size = 4;
}
if ((size % align) != 0) if ((size % align) != 0)
size = ALIGN(size, align); size = ALIGN(size, align);
allocation = max_t(size_t, size, PAGE_SIZE); allocation = max_t(size_t, size, PAGE_SIZE);
if (!boundary) { if (!boundary)
boundary = allocation; boundary = allocation;
} else if ((boundary < size) || (boundary & (boundary - 1))) { else if ((boundary < size) || (boundary & (boundary - 1)))
return NULL; return NULL;
}
retval = kmalloc_node(sizeof(*retval), GFP_KERNEL, dev_to_node(dev)); retval = kmalloc_node(sizeof(*retval), GFP_KERNEL, dev_to_node(dev));
if (!retval) if (!retval)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment