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/gv11b/pmu_gv11b.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/gv11b/pmu_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/pmu_gv11b.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c index e4cfe925..7dd4f8f4 100644 --- a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c | |||
@@ -184,7 +184,7 @@ int gv11b_pmu_bootstrap(struct nvgpu_pmu *pmu) | |||
184 | struct mm_gk20a *mm = &g->mm; | 184 | struct mm_gk20a *mm = &g->mm; |
185 | struct pmu_ucode_desc *desc = pmu->desc; | 185 | struct pmu_ucode_desc *desc = pmu->desc; |
186 | u64 addr_code_lo, addr_data_lo, addr_load_lo; | 186 | u64 addr_code_lo, addr_data_lo, addr_load_lo; |
187 | u64 addr_code_hi, addr_data_hi, addr_load_hi; | 187 | u64 addr_code_hi, addr_data_hi; |
188 | u32 i, blocks, addr_args; | 188 | u32 i, blocks, addr_args; |
189 | 189 | ||
190 | gk20a_dbg_fn(""); | 190 | gk20a_dbg_fn(""); |
@@ -238,8 +238,6 @@ int gv11b_pmu_bootstrap(struct nvgpu_pmu *pmu) | |||
238 | desc->app_resident_data_offset) >> 8); | 238 | desc->app_resident_data_offset) >> 8); |
239 | addr_load_lo = u64_lo32((pmu->ucode.gpu_va + | 239 | addr_load_lo = u64_lo32((pmu->ucode.gpu_va + |
240 | desc->bootloader_start_offset) >> 8); | 240 | desc->bootloader_start_offset) >> 8); |
241 | addr_load_hi = u64_hi32((pmu->ucode.gpu_va + | ||
242 | desc->bootloader_start_offset) >> 8); | ||
243 | 241 | ||
244 | gk20a_writel(g, pwr_falcon_dmemd_r(0), 0x0); | 242 | gk20a_writel(g, pwr_falcon_dmemd_r(0), 0x0); |
245 | gk20a_writel(g, pwr_falcon_dmemd_r(0), 0x0); | 243 | gk20a_writel(g, pwr_falcon_dmemd_r(0), 0x0); |