ARM: PL08x: use min() to calculate target_len