Skip to content

Commit 02c31d2

Browse files
Fabian Frederickdavem330
authored andcommitted
dccp: replace min/casting by min_t
Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 54da799 commit 02c31d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/dccp/ackvec.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static void dccp_ackvec_add_new(struct dccp_ackvec *av, u32 num_packets,
218218
* different underlying data structure.
219219
*/
220220
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);
222222

223223
av->av_buf_head = __ackvec_idx_sub(av->av_buf_head, 1);
224224
av->av_buf[av->av_buf_head] = DCCPAV_NOT_RECEIVED | len;

0 commit comments

Comments
 (0)