SIGN IN SIGN UP

thunderbolt: Use min() for the DMA path credit cap

tb_dma_reserve_credits() caps the request against what the adapter has
left by decrementing one credit at a time. The other arm of the same
if() already caps with min(port->total_credits, credits); use min()
here too.

No functional change: the object code is unchanged.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Fan Ye <fy15309206903@gmail.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
F
Fan Ye committed
e8158c8a6a232a70ae70c5acfaf7008a99b716c1
Parent: f7c0e02
Committed by Mika Westerberg <mika.westerberg@linux.intel.com> on 8/10/2026, 11:29:23 AM