]> git.baikalelectronics.ru Git - kernel.git/commit
[DCCP]: Remove duplicate test for CloseReq
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Wed, 28 Nov 2007 14:06:04 +0000 (12:06 -0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:55:14 +0000 (14:55 -0800)
commit80a16d852d927db18f819dd156ac50cb8cda36df
treecae67feeee5c22c74a35a9d704e27679ac507ee2
parent604bcd204d178324178023d2b96b2ce5c579dcee
[DCCP]: Remove duplicate test for CloseReq

This removes a redundant test for unexpected packet types. In dccp_rcv_state_process
it is tested twice whether a DCCP-server has received a CloseReq (Step 7):

 * first in the combined if-statement,
 * then in the call to dccp_rcv_closereq().

The latter is necesssary since dccp_rcv_closereq() is also called from
__dccp_rcv_established().

This patch removes the duplicate test.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/input.c