Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2686177pxp; Tue, 22 Mar 2022 04:07:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7qN/oQb6gTWZnuP+BmeSu4v6VO/qBtb5BE/XfWJMIMHK7J6N0QVGljsxuwNdmsdBXflf5 X-Received: by 2002:a17:903:22c6:b0:154:4156:f397 with SMTP id y6-20020a17090322c600b001544156f397mr13572590plg.29.1647947274860; Tue, 22 Mar 2022 04:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647947274; cv=none; d=google.com; s=arc-20160816; b=k81IPxW0h+Llxz9TtVmmdbly9+uAVn1X/RCRWLdkMRLLB1CzdaDY5WDsbSkdVJHArx FvulImHm7mIKBtbyew8E5HDVi2rbkjV2O+mB39myUP9QKMSOVlCg34xmb5JHGirnXB/t CcuewplW7nahjV45+CNCrY+dR6+F0v/Sxy0CZMZOSadTnN7lEEhHy5nJ9rezLzl5fBEw RTTzBokeaSEqVhoU/70dAITvbbrjHM4yq6aqhlK1qvxPAZ1yXJQXQtR1yVkR00cGvJnQ 0qnNF2M694tMtIy+Z8QSjLtZvoEae5nxtHXZPFZoyP7nAaD5zkdz8DrnOFbUXs/xK+dz IU+Q== 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=xSdvL1fz9xQE1h7nLGmSWAhHa9MbfEGGQiTO2RmR2Bs=; b=W35+ZYgkrf976ZaD4/g7+HYQmx/A998u2/j4Ql/4g8RDFf+5NnKXz0uzTU7cGpfr+s yNTQN29m5fwnzgv40pn3D501fhiYxqegcUxwvf8+uUCxa5Xt5Fuh2VrH/YPTvTjEhlcu wi8P+J9vAsZ/ibm1ghcMUSrUK755WR1m3+H/+2ysS3G+tQfhbogSx6F2ulGXfcFFQzM+ FGcifEPW24hpTgaeAUN4xgjIyqsMwyF3MKENalgnaNVI99hLRERM62n83f9V9EvbeKDg ZH6BzdpO42zFclF6yJlilVk1GyicoF0LlcEe+QNeIEUaQIf+uFt/pJIW7p3O1sICyG8l l6sA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 10-20020a63154a000000b003816043f0a7si15533395pgv.668.2022.03.22.04.07.42; Tue, 22 Mar 2022 04:07:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229964AbiCVKAe (ORCPT + 99 others); Tue, 22 Mar 2022 06:00:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231953AbiCVKAb (ORCPT ); Tue, 22 Mar 2022 06:00:31 -0400 Received: from mail.meizu.com (edge07.meizu.com [112.91.151.210]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0E9037029 for ; Tue, 22 Mar 2022 02:59:02 -0700 (PDT) Received: from IT-EXMB-1-125.meizu.com (172.16.1.125) by mz-mail11.meizu.com (172.16.1.15) with Microsoft SMTP Server (TLS) id 14.3.487.0; Tue, 22 Mar 2022 17:58:54 +0800 Received: from meizu.meizu.com (172.16.137.70) by IT-EXMB-1-125.meizu.com (172.16.1.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Tue, 22 Mar 2022 17:58:54 +0800 From: Haowen Bai To: , , , , , CC: , , , Haowen Bai Subject: [PATCH] drm/amd/display: use NULL instead of using plain integer as pointer Date: Tue, 22 Mar 2022 17:58:52 +0800 Message-ID: <1647943132-31250-1-git-send-email-baihaowen@meizu.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.16.137.70] X-ClientProxiedBy: IT-EXMB-1-126.meizu.com (172.16.1.126) To IT-EXMB-1-125.meizu.com (172.16.1.125) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 This fixes the following sparse warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c:71:40: warning: Using plain integer as NULL pointer Signed-off-by: Haowen Bai --- drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c index ec636d0..ef75eb7 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c @@ -68,7 +68,7 @@ static void get_qp_set(qp_set qps, enum colour_mode cm, enum bits_per_comp bpc, int sel = table_hash(mode, bpc, max_min); int table_size = 0; int index; - const struct qp_entry *table = 0L; + const struct qp_entry *table = NULL; // alias enum enum { min = DAL_MM_MIN, max = DAL_MM_MAX }; -- 2.7.4