projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54da799
)
dccp: replace min/casting by min_t
author
Fabian Frederick
<fabf@skynet.be>
Mon, 17 Nov 2014 20:58:37 +0000
(21:58 +0100)
committer
David S. Miller
<davem@davemloft.net>
Tue, 18 Nov 2014 20:26:32 +0000
(15:26 -0500)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ackvec.c
patch
|
blob
|
blame
|
history
diff --git
a/net/dccp/ackvec.c
b/net/dccp/ackvec.c
index ba07824af4c07950d8ee25c6abfccfb1fe919f5c..bd9e718c2a209b5d4b7e4859fc68f77c79541366 100644
(file)
--- 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;