Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dccp: replace min/casting by min_t

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Fabian Frederick and committed by
David S. Miller
02c31d2e 54da7996

+1 -1
+1 -1
net/dccp/ackvec.c
··· 218 218 * different underlying data structure. 219 219 */ 220 220 for (num_packets = num_cells = 1; lost_packets; ++num_cells) { 221 - u8 len = min(lost_packets, (u32)DCCPAV_MAX_RUNLEN); 221 + u8 len = min_t(u32, lost_packets, DCCPAV_MAX_RUNLEN); 222 222 223 223 av->av_buf_head = __ackvec_idx_sub(av->av_buf_head, 1); 224 224 av->av_buf[av->av_buf_head] = DCCPAV_NOT_RECEIVED | len;