summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/vgpu.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2016-02-02 04:52:45 -0500
committerSachin Nikam <snikam@nvidia.com>2016-02-03 03:52:01 -0500
commit550be4339c1750aa9f687f15a81a1544244a531f (patch)
tree691636f7e000e50bd4959fb1dffb3a3f005aaebe /drivers/gpu/nvgpu/vgpu/vgpu.c
parent8d311e5a91df62d8a6425d7593abb4df989d3ae9 (diff)
gpu: nvgpu: fix sparse warning
fix below sparse warning : drivers/gpu/nvgpu/vgpu/vgpu.c:170:27: warning: Using plain integer as NULL pointer Bug 200088648 Change-Id: I5121932140f00cdffe129bb58059251612dce109 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1001516 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/vgpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c
index 3791d8a7..d97b9e52 100644
--- a/drivers/gpu/nvgpu/vgpu/vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/vgpu.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Virtualized GPU 2 * Virtualized GPU
3 * 3 *
4 * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -167,7 +167,7 @@ static void vgpu_remove_support(struct platform_device *dev)
167 167
168 if (g->bar1) { 168 if (g->bar1) {
169 iounmap(g->bar1); 169 iounmap(g->bar1);
170 g->bar1 = 0; 170 g->bar1 = NULL;
171 } 171 }
172} 172}
173 173