summaryrefslogtreecommitdiffstats
path: root/net/dccp/ackvec.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-11-17 21:58:37 +0100
committerDavid S. Miller <davem@davemloft.net>2014-11-18 15:26:32 -0500
commit02c31d2e56dfc6e65ebf5891cf6953e3391ce590 (patch)
tree80e42f238b0f4f3d49655855019a22df332d45c7 /net/dccp/ackvec.c
parent54da7996b85b3a3e7388c5010ec0f1d866fc4830 (diff)
downloadlinux-02c31d2e56dfc6e65ebf5891cf6953e3391ce590.tar.bz2
dccp: replace min/casting by min_t
Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ackvec.c')
-rw-r--r--net/dccp/ackvec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/ackvec.c b/net/dccp/ackvec.c
index ba07824af4c0..bd9e718c2a20 100644
--- a/net/dccp/ackvec.c
+++ b/net/dccp/ackvec.c
@@ -218,7 +218,7 @@ static void dccp_ackvec_add_new(struct dccp_ackvec *av, u32 num_packets,
* different underlying data structure.
*/
for (num_packets = num_cells = 1; lost_packets; ++num_cells) {
- u8 len = min(lost_packets, (u32)DCCPAV_MAX_RUNLEN);
+ u8 len = min_t(u32, lost_packets, DCCPAV_MAX_RUNLEN);
av->av_buf_head = __ackvec_idx_sub(av->av_buf_head, 1);
av->av_buf[av->av_buf_head] = DCCPAV_NOT_RECEIVED | len;