projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b61be8d
)
ARM: PL08x: use min() to calculate target_len
author
Russell King - ARM Linux
<linux@arm.linux.org.uk>
Mon, 3 Jan 2011 22:42:34 +0000
(22:42 +0000)
committer
Dan Williams
<dan.j.williams@intel.com>
Wed, 5 Jan 2011 03:16:13 +0000
(19:16 -0800)
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
patch
|
blob
|
history
diff --git
a/drivers/dma/amba-pl08x.c
b/drivers/dma/amba-pl08x.c
index 7c327c3158788ae83dbdac393979a64fc8338500..91dd6bfcc30f566ce65761da52f0c2aca58083d6 100644
(file)
--- a/
drivers/dma/amba-pl08x.c
+++ b/
drivers/dma/amba-pl08x.c
@@
-682,9
+682,7
@@
static int pl08x_fill_llis_for_desc(struct pl08x_driver_data *pl08x,
* If enough left try to send max possible,
* otherwise try to send the remainder
*/
- target_len = remainder;
- if (remainder > max_bytes_per_lli)
- target_len = max_bytes_per_lli;
+ target_len = min(remainder, max_bytes_per_lli);
/*
* Set bus lengths for incrementing buses