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:
Amit Sharma (SW-TEGRA)
2015-02-09 09:21:05 +05:30
committed by Dan Willemsen
parent 401118f88b
commit 80d26baf05

View File

@@ -1298,7 +1298,7 @@ u64 gk20a_vm_map(struct vm_gk20a *vm,
u32 gmmu_page_size = 0;
u64 map_offset = 0;
int err = 0;
struct buffer_attrs bfr = {0};
struct buffer_attrs bfr = {NULL};
struct gk20a_comptags comptags;
u64 buf_addr;
bool clear_ctags = false;