Committer: Tim Just <tim.just@xxxxxxxxxxxxxx> Date: Fri Mar 05 11:21:10 2010 +0100 Revision: 3621 Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: tiny Log: Removed pointless switch from hip_handle_r2. hip_handle_r2 is only registered for the state HIP_STATE_I2_SENT. Therefore it is not necessary to check the state in the function. Modified: M hipd/input.c === modified file 'hipd/input.c' --- hipd/input.c 2010-03-05 10:19:45 +0000 +++ hipd/input.c 2010-03-05 10:21:10 +0000 @@ -1968,12 +1968,6 @@ } HIP_DEBUG("Received R2 in state %s\n", hip_state_str(ha_state)); - switch (ha_state) { - case HIP_STATE_R2_SENT: - case HIP_STATE_UNASSOCIATED: - case HIP_STATE_I1_SENT: - HIP_IFEL(1, -EFAULT, "Dropping\n"); - } if (ha_state == HIP_STATE_ESTABLISHED) { retransmission = 1;