From: Dan Smith Subject: [PATCH] Remove an unnecessary check on socket restart Date: Thu, 1 Oct 2009 15:04:11 -0700 Message-ID: <1254434651-6540-1-git-send-email-danms@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org List-Id: containers.vger.kernel.org This check is removed because it cannot be true because of the unsigned nature of the value being examined. Signed-off-by: Dan Smith Cc: serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org Cc: orenl-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org --- net/checkpoint.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/net/checkpoint.c b/net/checkpoint.c index a11ec7a..0087a8a 100644 --- a/net/checkpoint.c +++ b/net/checkpoint.c @@ -484,8 +484,7 @@ static int sock_cptrst(struct ckpt_ctx *ctx, struct sock *sk, (h->sock.state >= TCP_MAX_STATES)) { ckpt_debug("sock in invalid state: %i", h->sock.state); return -EINVAL; - } else if ((h->socket.state < SS_FREE) || - (h->socket.state > SS_DISCONNECTING)) { + } else if (h->socket.state > SS_DISCONNECTING) { ckpt_debug("socket in invalid state: %i", h->socket.state); return -EINVAL; -- 1.6.0.4