android_kernel_xiaomi_sm8350/net
Gerrit Renker 70dbd5b0ef [DCCP] ccid3: Remove redundant statements in ccid3_hc_tx_packet_sent
This patch removes a switch statement which is redundant since,
 * nothing is done in states TFRC_SSTATE_NO_SENT/TFRC_SSTATE_NO_FBACK
 * it is impossible that the function is called in the state TFRC_SSTATE_TERM, since
       --the function is called, in dccp_write_xmit, after ccid3_hc_tx_send_packet
       --if ccid3_hc_tx_send_packet is called in state TFRC_SSTATE_TERM, it returns
         -EINVAL, which means that ccid3_hc_tx_packet_sent will not be called
	 (compare dccp_write_xmit)
       --> therefore, this case is logically impossible
 * the remaining state is TFRC_SSTATE_FBACK which conditionally updates t_ipi, t_nom,
   and t_delta. This is a no-op, since
       --t_ipi only changes when feedback is received
       --however, when feedback arrives via ccid3_hc_tx_packet_recv, there is an identical
         code block which performs the same set of operations
       --performing the same set of operations again in ccid3_hc_tx_packet_sent therefore
         does not change anything, since between the time of receiving the last feedback
	 (and therefore update of t_ipi, t_nom, and t_delta), the value of t_ipi has not
	 changed
       --since t_ipi has not changed, the values of t_delta and t_nom also do not change,
         they depend fully on t_ipi

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
2006-12-02 21:30:40 -08:00
..
802 [NET]: Kill direct includes of asm/checksum.h 2006-12-02 21:22:59 -08:00
8021q
appletalk [APPLETALK]: Fix potential OOPS in atalk_sendmsg(). 2006-10-30 15:24:34 -08:00
atm [ATM]: Use kmemdup & kzalloc where applicable 2006-12-02 21:30:13 -08:00
ax25 [AX25]: Use kmemdup 2006-12-02 21:24:01 -08:00
bluetooth [BLUETOOTH] lockdep: annotate sk_lock nesting in AF_BLUETOOTH 2006-12-02 21:21:35 -08:00
bridge [BRIDGE] netlink: Convert bridge netlink code to new netlink interface 2006-12-02 21:26:13 -08:00
core [NET] neighbour: Use kmemdup where applicable 2006-12-02 21:30:14 -08:00
dccp [DCCP] ccid3: Remove redundant statements in ccid3_hc_tx_packet_sent 2006-12-02 21:30:40 -08:00
decnet [DECNET] address: Convert to new netlink interface 2006-12-02 21:30:30 -08:00
econet
ethernet [NET]: Kill direct includes of asm/checksum.h 2006-12-02 21:22:59 -08:00
ieee80211 [PATCH] softmac: reduce scan debug output 2006-12-02 00:12:06 -05:00
ipv4 [IPVS]: Use kmemdup where appropriate 2006-12-02 21:30:16 -08:00
ipv6 [IPV6]: Improve IPv6 tunnel error reporting 2006-12-02 21:30:27 -08:00
ipx [IPX]: Annotate and fix IPX checksum 2006-11-05 14:11:25 -08:00
irda [IRDA]: Use kmemdup where applicable 2006-12-02 21:30:17 -08:00
key [XFRM]: annotate ->new_mapping() 2006-12-02 21:21:18 -08:00
lapb
llc [LLC]: anotations 2006-12-02 21:21:23 -08:00
netfilter [SCTP]: Netfilter sctp annotations. 2006-12-02 21:27:12 -08:00
netlabel NetLabel: honor the audit_enabled flag 2006-12-02 21:24:15 -08:00
netlink [GENETLINK] ctrl: Avoid empty CTRL_ATTR_OPS attribute when dumping 2006-12-02 21:30:23 -08:00
netrom [NETROM]: Use kmemdup 2006-12-02 21:24:02 -08:00
packet [AF_PACKET]: annotate 2006-12-02 21:21:24 -08:00
rose
rxrpc [NET]: Kill direct includes of asm/checksum.h 2006-12-02 21:22:59 -08:00
sched [SCHED]: Use kmemdup & kzalloc where appropriate 2006-12-02 21:30:18 -08:00
sctp [SCTP]: Use kzalloc where appropriate 2006-12-02 21:30:19 -08:00
sunrpc [SUNRPC]: Use k{mem,str}dup where applicable 2006-12-02 21:30:20 -08:00
tipc [TIPC]: Use kzalloc where appropriate 2006-12-02 21:30:21 -08:00
unix [NET]: Annotate csum_partial() callers in net/* 2006-12-02 21:23:32 -08:00
wanrouter Fix misc .c/.h comment typos 2006-11-30 05:24:39 +01:00
x25
xfrm [XFRM]: Use kmemdup where appropriate 2006-12-02 21:30:22 -08:00
compat.c [NET]: File descriptor loss while receiving SCM_RIGHTS 2006-10-11 23:59:48 -07:00
Kconfig [NET]: The scheduled removal of the frame diverter. 2006-12-02 21:22:23 -08:00
Makefile
nonet.c
socket.c [NET]: The scheduled removal of the frame diverter. 2006-12-02 21:22:23 -08:00
sysctl_net.c
TUNABLE