Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751685Ab2KPG5e (ORCPT ); Fri, 16 Nov 2012 01:57:34 -0500 Received: from mail-pb0-f46.google.com ([209.85.160.46]:57791 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751640Ab2KPG5b (ORCPT ); Fri, 16 Nov 2012 01:57:31 -0500 From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: patches@linaro.org, Chas Williams , linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org Subject: [PATCH 10/14] atm: Removed redundant check on unsigned variable Date: Fri, 16 Nov 2012 12:20:42 +0530 Message-Id: <1353048646-10935-11-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1353048646-10935-1-git-send-email-tushar.behera@linaro.org> References: <1353048646-10935-1-git-send-email-tushar.behera@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1168 Lines: 31 No need to check whether unsigned variable is less than 0. CC: Chas Williams CC: linux-atm-general@lists.sourceforge.net CC: netdev@vger.kernel.org Signed-off-by: Tushar Behera --- drivers/atm/fore200e.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c index 361f5ae..fdd3fe7 100644 --- a/drivers/atm/fore200e.c +++ b/drivers/atm/fore200e.c @@ -972,7 +972,7 @@ int bsq_audit(int where, struct host_bsq* bsq, int scheme, int magn) where, scheme, magn, buffer->index, buffer->scheme); } - if ((buffer->index < 0) || (buffer->index >= fore200e_rx_buf_nbr[ scheme ][ magn ])) { + if (buffer->index >= fore200e_rx_buf_nbr[ scheme ][ magn ]) { printk(FORE200E "bsq_audit(%d): queue %d.%d, out of range buffer index = %ld !\n", where, scheme, magn, buffer->index); } -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/