mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ARM: PL08x: use min() to calculate target_len
Signed-off-by: Russell King <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
parent
b61be8d728
commit
d6cf7b597f
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue