Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp401329pxf; Wed, 31 Mar 2021 06:22:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd2qhIEvz85ZGdQEut6yHJhMVFYq/8H/QH/On51e0ErED5BetMJSAR2w2apfMr3AhWaKhn X-Received: by 2002:a05:6402:430c:: with SMTP id m12mr3824092edc.138.1617196969424; Wed, 31 Mar 2021 06:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617196969; cv=none; d=google.com; s=arc-20160816; b=GFlKIcD7kBqeeRSW6FXK1fuWTqMe3/xq4TlRcMPJeaLAIKwgu482ss9pjIuc9vaDtI IXMoWeW8LFL7v+rlP3EGwnqllKyUrflWgetJ8jBg9S1nfzT4mEqJ6UGY/oYkGdDKRPy7 SeLjT/uDVIU5/gr59Rcs4nmRrxr1beOUzXY62UD4YRYTLQsOmucyet3WX3S+mZzGv6Iq 8H8ba7qNq9FX7OlKXKYKM/oQo7Ecci9BN/Uj4KFdcxpYLKoTEtYeXSW2v6bsdLL5wAWm GYIS7AJ5W1LQuRnT8tc9D6xL9u4sZR1sI7zhUzrSSHkDXhq7j+i/kUrRVaWsO3YRZH6a xUYA== 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=VonmDATelTufh/ajN8kfFQUU96Hr7c/f51gZncFzamY=; b=m1TkKKpgQ4JysXLUTpLInT84sPCOAjH5RsUsYh0uYcX7+lZaudSH++FHvWijgZUOPh OFnwntVZ2Ji9ynlTp9Dg+9+iRV8HR0eGoXcgis3z23ERhM93BXowfEtdyXFgzjDvYLzR HK9RuFfNTu05jVufgsyLaxS2NPr/7gBgpzrf+qyA4l3j9gRHBs/zQjw0Va3PzSLoRsx9 ReD+zqiWSLRvLO2o1dez4nfnr5U/nTgfXxy7e+na12BmpRCu6OcPDc5ZzYHl048Hhgup 09D3HL22VuljIMNV5paOx1qH5JaK/6JPeveMNDA/nw8ZQ02b6V7X7J2li24SvzDEvJto H5Kw== 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=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb35si1715728ejc.351.2021.03.31.06.22.26; Wed, 31 Mar 2021 06:22:49 -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=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235863AbhCaNVr (ORCPT + 99 others); Wed, 31 Mar 2021 09:21:47 -0400 Received: from mail-m121143.qiye.163.com ([115.236.121.143]:34798 "EHLO mail-m121143.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235777AbhCaNVM (ORCPT ); Wed, 31 Mar 2021 09:21:12 -0400 Received: from ubuntu.localdomain (unknown [36.152.145.181]) by mail-m121143.qiye.163.com (Hmail) with ESMTPA id 2EB85540261; Wed, 31 Mar 2021 21:13:35 +0800 (CST) From: Bernard Zhao To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Kalyan Thota , Abhinav Kumar , Lee Jones , Dmitry Baryshkov , Jonathan Marek , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Bernard Zhao Subject: [PATCH] msm/disp: dpu_plane cleanup-coding-style-a-bit Date: Wed, 31 Mar 2021 06:13:27 -0700 Message-Id: <20210331131329.61000-1-bernard@vivo.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZHRpDHkJOTkpCGkpPVkpNSkxKQk1PSk5OTE1VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6N1E6MSo*HD8LDjUJNy8tKzgX My9PFCFVSlVKTUpMSkJNT0pOQ05CVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlITVVK TklVSk9OVUpDSllXWQgBWUFJTktJNwY+ X-HM-Tid: 0a78886afa16b038kuuu2eb85540261 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c:1195:41: warning: Using plain integer as NULL pointer Signed-off-by: Bernard Zhao --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c index f898a8f67b7f..687a57850405 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c @@ -1223,7 +1223,7 @@ static void _dpu_plane_atomic_disable(struct drm_plane *plane) { struct dpu_plane *pdpu = to_dpu_plane(plane); struct drm_plane_state *state = plane->state; - struct dpu_plane_state *pstate = to_dpu_plane_state(state); + struct dpu_plane_state *pstate = (struct dpu_plane_state *)to_dpu_plane_state(state); trace_dpu_plane_disable(DRMID(plane), is_dpu_plane_virtual(plane), pstate->multirect_mode); -- 2.31.0