Bug 4551 - drm/mediatek: Use NULL instead of 0 for NULL pointer
Summary: drm/mediatek: Use NULL instead of 0 for NULL pointer
Status: RESOLVED FIXED
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: 5.10.y-9
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: GuixinLiu
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-17 09:58 UTC by wenwenroad
Modified: 2023-08-17 17:13 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wenwenroad 2023-03-17 09:58:45 UTC
Description of problem:

Use NULL for NULL pointer to fix the following sparse warning:
drivers/gpu/drm/mediatek/mtk_drm_gem.c:265:27: sparse: warning: Using plain integer as NULL pointer

see upstream:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=55bc7babc094db91342a8dc98270fe240e35e96b
Comment 1 GuixinLiu alibaba_cloud_group 2023-08-17 17:13:58 UTC
已经合入devel-5.10,commit为:bcebcd8c3e335c444b55a8bef772c9f5b81a5da0