Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2660109imi; Mon, 25 Jul 2022 04:55:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uU3yw6mYgxH6WPKP5yfgHmt5zgDi1OJpLzicliXxCxcK1gaVQ76DKC82hpCDAAAWK8eyKh X-Received: by 2002:a17:90a:e7c2:b0:1ef:8acb:5ff with SMTP id kb2-20020a17090ae7c200b001ef8acb05ffmr14405118pjb.146.1658750151444; Mon, 25 Jul 2022 04:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658750151; cv=none; d=google.com; s=arc-20160816; b=UlBBuGFFDyM5YNDX0e+ZN/tBDTi/+7iqrAw+IvqwnEq6BJP9RW1NZglhYR5o1QP8+0 qVFMMTZ+0wxirDNtjG6xhH89umLghrPTUPgd370jDZpRv/A/yMT+M3gjUkFTy7bq5z9Y gxi4Ih3yY8Nid3sakFu7GclS3/91O43U8qtekt+X1836iHr4MTP/WXBgnyxbvoMDcrGj 5ZSbufTEfhTsPmonLWC3Tk4+QGz2EmarWjZx2jV93DxSkhadA4wyOyviX7FpASmCzQmD lFrvhflsD30C61PuQdxMEAs5SF7YfInpi86eS8Cfp5IXE7zxtbHH8UMWdXdngdWy/mC1 4uKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=pMDxZ30Btp6gqKuzbRr8bWmVHCo/phcjywYqzFriun4=; b=H3gY8FPXQRTCZWu5q9XbW9nP82uHoBN/OjnTTlu/p5wJzEpPnvO52Wb7V8nbO9DtlH cLJ27QPMYg3bhmVXB/Q6ZIPtG59VP/OpSISgV8EA6BiqrNnn3X2S07DkkORoGnn4Ev5E 7omX9AdlvxNVAqfh7CJJmMim7HrEPQ7/RyfO9fjnUL/ZJzS2QlVG6ycRRUtiu1yTShIf MS8kFANdBuhvHgQvUcD2g6uTUVzO8CSdCAH5ZN0mqesl7VCKcdoygd8PbWUhzRFcE3sW TqH2Ea2Rr1Rk1yjyXSfYIWsb80CZkq31Alpk+WBEuB43DBMUZVUEPGcheGkAu1NPaSoF ic6A== 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 t4-20020a635344000000b0041212cbc38csi14115439pgl.495.2022.07.25.04.55.34; Mon, 25 Jul 2022 04:55:51 -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 S234852AbiGYLUr (ORCPT + 99 others); Mon, 25 Jul 2022 07:20:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234839AbiGYLUa (ORCPT ); Mon, 25 Jul 2022 07:20:30 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 273F918B23 for ; Mon, 25 Jul 2022 04:20:29 -0700 (PDT) Received: from dggpemm500023.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LryFD1xMLzjXSS; Mon, 25 Jul 2022 19:17:36 +0800 (CST) Received: from dggpemm500016.china.huawei.com (7.185.36.25) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 25 Jul 2022 19:20:09 +0800 Received: from huawei.com (10.67.174.33) by dggpemm500016.china.huawei.com (7.185.36.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 25 Jul 2022 19:20:09 +0800 From: "GONG, Ruiqi" To: Miquel Raynal , Naga Sureshkumar Relli , Richard Weinberger , "Vignesh Raghavendra" CC: , , "Wang Weiyang" , GONG Ruiqi Subject: [PATCH] mtd: rawnand: arasan: stop using 0 as NULL pointer Date: Mon, 25 Jul 2022 19:21:07 +0800 Message-ID: <20220725112108.686347-1-gongruiqi1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.33] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500016.china.huawei.com (7.185.36.25) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Fix the following sparse warnings: drivers/mtd/nand/raw/arasan-nand-controller.c:918:70: warning: Using plain integer as NULL pointer drivers/mtd/nand/raw/arasan-nand-controller.c:918:73: warning: Using plain integer as NULL pointer Signed-off-by: GONG, Ruiqi --- drivers/mtd/nand/raw/arasan-nand-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/arasan-nand-controller.c b/drivers/mtd/nand/raw/arasan-nand-controller.c index 296fb16c8dc3..ec7e6eeac55f 100644 --- a/drivers/mtd/nand/raw/arasan-nand-controller.c +++ b/drivers/mtd/nand/raw/arasan-nand-controller.c @@ -915,7 +915,7 @@ static int anfc_check_op(struct nand_chip *chip, if (instr->ctx.data.len > ANFC_MAX_CHUNK_SIZE) return -ENOTSUPP; - if (anfc_pkt_len_config(instr->ctx.data.len, 0, 0)) + if (anfc_pkt_len_config(instr->ctx.data.len, NULL, NULL)) return -ENOTSUPP; break; -- 2.25.1