]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: PL08x: make pl08x_fill_lli_for_desc() return void
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Mon, 3 Jan 2011 22:41:54 +0000 (22:41 +0000)
committerDan Williams <dan.j.williams@intel.com>
Wed, 5 Jan 2011 03:16:13 +0000 (19:16 -0800)
commit684de40bd7455fe4597e0b4dbfc1b17676af4343
treeff40c68f8c836d217b81d5c385e4ff2275a335be
parent1e4f977d631166eeb3e76830b7ccbad3e0a2894f
ARM: PL08x: make pl08x_fill_lli_for_desc() return void

We don't need pl08x_fill_lli_for_desc() to return num_llis + 1 as
we know that's what it always does.  We can just pass in num_llis
and use post-increment in the caller.

This makes the code slightly easier to read.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/amba-pl08x.c