Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1356169pxp; Thu, 17 Mar 2022 07:57:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA/AAlDhr4vm4CekpHVoHaGZO/Hk316TQQltWT+/0nc3W82WzbvIxrP3RBWlihlbPshSBD X-Received: by 2002:a63:4665:0:b0:374:7305:dab4 with SMTP id v37-20020a634665000000b003747305dab4mr4110636pgk.256.1647529063290; Thu, 17 Mar 2022 07:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647529063; cv=none; d=google.com; s=arc-20160816; b=YZiQPsz9efSFvj0IJDVYrNyNHwu5G2g1qqH5OfBDBdG+yLrmVMs/qRF+5qYVYziwNZ bxJRfoma6QuzUixdxh3rgSwFRkI+33PeRuxY+73R5nBJyXY7yZ4aGO9ODX3/kv8nygWq 8Emc+Kzx2mQrqWy0qtsb1pfKy2mYjO42wGDzr68K7cJ4zYAleQJbs8Zi6G4NVZTX6/Fv L7mu0t47VtpzjvFm6hi3B1DBm4xMsbLv2QEuy1NSKhIMT2iKQkTQEphlBMGfjDSN6k/L 7nQakY1NQip77fvEfiiRn/tJVq+w8JX5mBn22NwXcwn4Q1gsVR3qroMIGMtTMqDGL/kC UkKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=KdBhKaWGHa/2NVgeOLN7yWLlFJGJlOjs0oO9TyNgGBo=; b=eFTgGBlgLBwgVJAatQqE+NdnooFnv0BHbOiYt09Or0lele9LT4tdeRvyidQknD/wgI +yD0qgyaW8HT3Dq+63EXsuVQtShOyAJHuPioUPzRyXqTHz3bkNKpB/JbMgebwsO0N+KO 1AVyftFEB5VlXKXp7QGaw7Z86T1X7H+OOO1iDBBXZbDoTsPy2/MxOfwBeoqvSC4D0AX2 0WYqbUhg61Rq7mJ83GxDP0iEQL9sUKcHDBon5gVGADR7BDme8zUcl9H7Nt4PI/ytAQ+Q aJvZEA9VlvG7NYwC4uW179A2/+NEFTMydkhHf8vzRdDCwZYDcZh3aG+LGwz3mIkcCr94 ndEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a63ea0c000000b003816043f175si2288791pgi.874.2022.03.17.07.57.28; Thu, 17 Mar 2022 07:57:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233081AbiCQLmR (ORCPT + 99 others); Thu, 17 Mar 2022 07:42:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233068AbiCQLmQ (ORCPT ); Thu, 17 Mar 2022 07:42:16 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ED701E3E38 for ; Thu, 17 Mar 2022 04:40:59 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KK4tS5V6GzfZ8C; Thu, 17 Mar 2022 19:39:28 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 17 Mar 2022 19:40:57 +0800 Received: from ubuntu1804.huawei.com (10.67.174.152) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 17 Mar 2022 19:40:57 +0800 From: Wang Weiyang To: , , , CC: , , Subject: [PATCH -next] mtd: rawnand: davinci: Remove redundant unsigned comparison to zero Date: Thu, 17 Mar 2022 19:39:07 +0800 Message-ID: <20220317113907.96006-1-wangweiyang2@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.152] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since core_chipsel is uint32_t, comparison to zero is redundant Signed-off-by: Wang Weiyang --- drivers/mtd/nand/raw/davinci_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/davinci_nand.c b/drivers/mtd/nand/raw/davinci_nand.c index 45fec8c192ab..3e98e3c255bf 100644 --- a/drivers/mtd/nand/raw/davinci_nand.c +++ b/drivers/mtd/nand/raw/davinci_nand.c @@ -727,7 +727,7 @@ static int nand_davinci_probe(struct platform_device *pdev) return -ENODEV; /* which external chipselect will we be managing? */ - if (pdata->core_chipsel < 0 || pdata->core_chipsel > 3) + if (pdata->core_chipsel > 3) return -ENODEV; info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); -- 2.17.1