]> git.baikalelectronics.ru Git - kernel.git/commit
dccp ccid-2: Use existing function to test for data packets
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Sun, 3 Jul 2011 15:53:12 +0000 (09:53 -0600)
committerGerrit Renker <gerrit@erg.abdn.ac.uk>
Mon, 4 Jul 2011 18:37:40 +0000 (12:37 -0600)
commit44a77bc68a50c07344013ff632c7a800547ce3bc
tree9cdaa4c22734531b21479dc594dadf6ffbcd36d4
parent38462bc1acfc1e4fbfdd8d7450c3aed689c7b2fa
dccp ccid-2: Use existing function to test for data packets

This replaces a switch statement with a test, using the equivalent
function dccp_data_packet(skb).  It also doubles the range of the field
`rx_num_data_pkts' by changing the type from `int' to `u32', avoiding
signed/unsigned comparison with the u16 field `dccps_r_ack_ratio'.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
net/dccp/ccids/ccid2.c
net/dccp/ccids/ccid2.h