From patchwork Fri Nov 16 06:50:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 12897 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 56D7223E13 for ; Fri, 16 Nov 2012 06:57:45 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 0BD15A18287 for ; Fri, 16 Nov 2012 06:57:44 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so3064408iej.11 for ; Thu, 15 Nov 2012 22:57:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=tDxKrl1TIg2wPnZrdQAzZWMWPEACixi/xGdtr86AJFI=; b=Yq5CtDbKNzzQFSWEjper35Wdf3vljqKDaRH7Tc0t6Y6STMK67H1ijCK4jyozwjq8MY 49Hp2TprJ2TRvCL7S15DBkICg58bGqvgsaLV/QzBAaESRV0+MRNgabAtTKG/d2mQm2Oy Fka2qKQ5cQJ62ehOu0NBPyQ0qkVcRYoTFu9jgc5PSvtiEtW8ft8KSdz7RiJ6z+O5Kfq4 qU1ZFIck+IeEiMIHHxfsvKVzr33Qz6W4rH2TleRq+MdrEw0GcRKlNIFQrIvJxArWyqKR Ct5hcAVLXxeWtiVBAwxDC3trN6tJsiNiTSvHvCmHHtzcHQdWR7+AuPy584UncVpo9pdU ryHA== Received: by 10.50.187.197 with SMTP id fu5mr2207357igc.70.1353049064817; Thu, 15 Nov 2012 22:57:44 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp23392igt; Thu, 15 Nov 2012 22:57:44 -0800 (PST) Received: by 10.68.232.195 with SMTP id tq3mr6416215pbc.70.1353049064380; Thu, 15 Nov 2012 22:57:44 -0800 (PST) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by mx.google.com with ESMTPS id gk10si1484446pbc.266.2012.11.15.22.57.44 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Nov 2012 22:57:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.52 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.220.52; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.52 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pa0-f52.google.com with SMTP id bj1so1923175pad.39 for ; Thu, 15 Nov 2012 22:57:44 -0800 (PST) Received: by 10.66.76.98 with SMTP id j2mr10140877paw.65.1353049064171; Thu, 15 Nov 2012 22:57:44 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id mz10sm753915pbc.37.2012.11.15.22.57.40 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Nov 2012 22:57:43 -0800 (PST) From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: patches@linaro.org, Luciano Coelho , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 14/14] wlcore: Remove redundant check on unsigned variable Date: Fri, 16 Nov 2012 12:20:46 +0530 Message-Id: <1353048646-10935-15-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> X-Gm-Message-State: ALoCoQmYo+ks9stCxQPcomlNQ9bDsZm4UWweDA0jslWOXfEUI1nMXGrCl4vNyZx9F+vUeRzNFcaT No need to check whether unsigned variable is less than 0. CC: Luciano Coelho CC: linux-wireless@vger.kernel.org CC: netdev@vger.kernel.org Signed-off-by: Tushar Behera --- drivers/net/wireless/ti/wlcore/debugfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/ti/wlcore/debugfs.c b/drivers/net/wireless/ti/wlcore/debugfs.c index c86bb00..93f801d 100644 --- a/drivers/net/wireless/ti/wlcore/debugfs.c +++ b/drivers/net/wireless/ti/wlcore/debugfs.c @@ -993,7 +993,7 @@ static ssize_t sleep_auth_write(struct file *file, return -EINVAL; } - if (value < 0 || value > WL1271_PSM_MAX) { + if (value > WL1271_PSM_MAX) { wl1271_warning("sleep_auth must be between 0 and %d", WL1271_PSM_MAX); return -ERANGE;