Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp149420pxf; Wed, 17 Mar 2021 01:29:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTKK8JFLLIu0koeXPLlH6vKH5Vx6eOkpoeRucpdvkUQbkPExsmXKZmXqT4bXbYNudgWhJR X-Received: by 2002:a17:906:90d8:: with SMTP id v24mr33579770ejw.547.1615969771043; Wed, 17 Mar 2021 01:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615969771; cv=none; d=google.com; s=arc-20160816; b=OygrLmyN0ICohOge7Q93karmVhuIhzyU0QZP/mjOL6+a+aRh4OZOpm/gr+lL1hyfKS 4xINWu/DwSTdmnhHqTUpuBIIkij+LMyMQHmHl33UjWadPFq+LnhTJm2mUWSr3qJz1fzl Lk1A7C9970iFPS9mFFWQK92Janb1ZJ0jqcx42tZx9KZRz9Y5jfClD+p88XNjvnI0oshE CJZU+Jcmh9A1V1T2Jz39zcypuJl7sNBhGPVVHUuJUvDVaNQkingf+rz9sGQoTmUZc898 tSKCtfIIlrkFE/S/i+/oPTSIc6Jm9SJmsyM5ljKJqJF5v51SHD4RCyrGvJm3E97dukTH gzIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Z2+PT1zHAYcPMSrUiocroVJZqUEv6DJd7ZaQA0ILFV4=; b=hRKq5nU86wqNq4tuU7TZMkKc/I7fw9egHZKmVfv3Pd8Ijezu6TPtu6odVkC/BnjdTp TWhql3QLuclMqciIoplY2S2ZuBZAZ0bkwvNHnQej8QBBn9aa9nWQsL6cH95tWqpgnIEb X3p3EIav+1yfd6EupA/mIYLtZDTxF3nh0FASTtcHyafVzbuGXcgJ6d2e+ISPZadjWqaz C7PdolBymx6WC4KqkAILFQFo8wqzH3S51PeZWOw9UWIH7CE9U8NTXrgsRzC+L63ze17p u2uoS0J1W5coBZmXRv3rQEf/glEBM4p64MdNJRilNoacxKZDy8N2/AW13wY5XpGosDm6 ft9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si16224364edy.321.2021.03.17.01.29.08; Wed, 17 Mar 2021 01:29:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229519AbhCQI2D (ORCPT + 99 others); Wed, 17 Mar 2021 04:28:03 -0400 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:54623 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbhCQI1h (ORCPT ); Wed, 17 Mar 2021 04:27:37 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0USFl2Xq_1615969654; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0USFl2Xq_1615969654) by smtp.aliyun-inc.com(127.0.0.1); Wed, 17 Mar 2021 16:27:34 +0800 From: Yang Li To: patrik.r.jakobsson@gmail.com Cc: airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] drm/gma500: use NULL instead of using plain integer as pointer Date: Wed, 17 Mar 2021 16:27:32 +0800 Message-Id: <1615969652-80225-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes the following sparse warnings: drivers/gpu/drm/gma500/psb_drv.c:303:56: warning: Using plain integer as NULL pointer Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/gma500/psb_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 0bcab06..c2aab62 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c @@ -303,7 +303,7 @@ static int psb_driver_load(struct drm_device *dev, unsigned long flags) ret = -ENOMEM; - dev_priv->mmu = psb_mmu_driver_init(dev, 1, 0, 0); + dev_priv->mmu = psb_mmu_driver_init(dev, 1, 0, NULL); if (!dev_priv->mmu) goto out_err; -- 1.8.3.1