Skip to content

Commit

Permalink
mm/dmapool.c: fixed a brace coding style issue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
paulmcquad authored and torvalds committed Oct 10, 2014
1 parent 25acde3 commit baa2ef8
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions mm/dmapool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit baa2ef8

Please sign in to comment.