summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAmit Sharma (SW-TEGRA) <amisharma@nvidia.com>2015-06-09 22:48:18 -0400
committerAmit Sharma (SW-TEGRA) <amisharma@nvidia.com>2015-06-19 04:56:40 -0400
commitf877d0649c40c183f02953b192b0a352e5153851 (patch)
treeb2a82c2a39c692f70891d9aef01e66a4fc81108b /drivers/gpu
parentedd58888d15a0ac18baa5cba5e24e325afdb60b5 (diff)
gpu: nvgpu: gk20a: Use NULL instead of integer '0'
Fixed the following sparse warning by using the proper 'NULL' instead of '0': - fifo_gk20a.c: warning: Using plain integer as NULL pointer Bug 200067946 Bug 200088648 Change-Id: I316b119e87b7203450ce85232398b43384ee16cc Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com> Reviewed-on: http://git-master/r/755348 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-on: http://git-master/r/757050
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
index 4ef310b2..731074de 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
@@ -946,7 +946,7 @@ static bool gk20a_fifo_handle_mmu_fault(
946 struct fifo_mmu_fault_info_gk20a f; 946 struct fifo_mmu_fault_info_gk20a f;
947 struct channel_gk20a *ch = NULL; 947 struct channel_gk20a *ch = NULL;
948 struct tsg_gk20a *tsg = NULL; 948 struct tsg_gk20a *tsg = NULL;
949 struct channel_gk20a *referenced_channel = 0; 949 struct channel_gk20a *referenced_channel = NULL;
950 /* read and parse engine status */ 950 /* read and parse engine status */
951 u32 status = gk20a_readl(g, fifo_engine_status_r(engine_id)); 951 u32 status = gk20a_readl(g, fifo_engine_status_r(engine_id));
952 u32 ctx_status = fifo_engine_status_ctx_status_v(status); 952 u32 ctx_status = fifo_engine_status_ctx_status_v(status);