mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: Fix NULL instead of interger
Fixed the following sparse warning using proper NULL instead of '0': - mm_gk20a.c:1301: warning: Using plain integer as NULL pointer Bug 200067946 Change-Id: Idd84f541711682bf097bb474049d523a5bb01ae2 Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com> Reviewed-on: http://git-master/r/682242 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
This commit is contained in:
committed by
Dan Willemsen
parent
401118f88b
commit
80d26baf05
@@ -1298,7 +1298,7 @@ u64 gk20a_vm_map(struct vm_gk20a *vm,
|
|||||||
u32 gmmu_page_size = 0;
|
u32 gmmu_page_size = 0;
|
||||||
u64 map_offset = 0;
|
u64 map_offset = 0;
|
||||||
int err = 0;
|
int err = 0;
|
||||||
struct buffer_attrs bfr = {0};
|
struct buffer_attrs bfr = {NULL};
|
||||||
struct gk20a_comptags comptags;
|
struct gk20a_comptags comptags;
|
||||||
u64 buf_addr;
|
u64 buf_addr;
|
||||||
bool clear_ctags = false;
|
bool clear_ctags = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user