diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-02-21 18:59:56 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-24 00:53:38 -0500 |
commit | b5d3cf444eeeb62a593365532b22e44f9360a484 (patch) | |
tree | 291b251e82bb469e3c8a823442d04c79ea786dbc /drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |
parent | bd95c2ce3f5c1bbb310d66350b33d8cc4a043073 (diff) |
gpu: nvgpu: Cleanup unused variables
There are numerous places where variables are assigned to but then
never used. This patch cleans up all these unused variables and
in some cases simplifies surrounding logic.
Also delete unused header includes and add necessary header includes.
JIRA NVGPU-525
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Change-Id: Ice9ec2a0e97f262d0dcfebe22f83208dbea569d9
Reviewed-on: https://git-master.nvidia.com/r/1662548
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index ef26a74e..8db6b42f 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -22,8 +22,6 @@ | |||
22 | * DEALINGS IN THE SOFTWARE. | 22 | * DEALINGS IN THE SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <trace/events/gk20a.h> | ||
26 | |||
27 | #include <nvgpu/dma.h> | 25 | #include <nvgpu/dma.h> |
28 | #include <nvgpu/kmem.h> | 26 | #include <nvgpu/kmem.h> |
29 | #include <nvgpu/gmmu.h> | 27 | #include <nvgpu/gmmu.h> |
@@ -6171,14 +6169,10 @@ static int gr_gk20a_decode_priv_addr(struct gk20a *g, u32 addr, | |||
6171 | u32 *broadcast_flags) | 6169 | u32 *broadcast_flags) |
6172 | { | 6170 | { |
6173 | u32 gpc_addr; | 6171 | u32 gpc_addr; |
6174 | u32 ppc_address; | ||
6175 | u32 ppc_broadcast_addr; | ||
6176 | 6172 | ||
6177 | gk20a_dbg(gpu_dbg_fn | gpu_dbg_gpu_dbg, "addr=0x%x", addr); | 6173 | gk20a_dbg(gpu_dbg_fn | gpu_dbg_gpu_dbg, "addr=0x%x", addr); |
6178 | 6174 | ||
6179 | /* setup defaults */ | 6175 | /* setup defaults */ |
6180 | ppc_address = 0; | ||
6181 | ppc_broadcast_addr = 0; | ||
6182 | *addr_type = CTXSW_ADDR_TYPE_SYS; | 6176 | *addr_type = CTXSW_ADDR_TYPE_SYS; |
6183 | *broadcast_flags = PRI_BROADCAST_FLAGS_NONE; | 6177 | *broadcast_flags = PRI_BROADCAST_FLAGS_NONE; |
6184 | *gpc_num = 0; | 6178 | *gpc_num = 0; |