summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/clk/clk_vin.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-03-12 19:01:44 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-30 17:54:08 -0400
commit12cd49a733f88c2d6ad41a5c411d1076f26956ed (patch)
treec967b22b86c44165f1c61fbabb6a037dc30ec803 /drivers/gpu/nvgpu/clk/clk_vin.c
parent3d90f0aad537d92b42bc8250252f521b649077f8 (diff)
gpu: nvgpu: Cleanup more set but unused variables
This time they were largely located in the various common directories. JIRA NVGPU-525 Change-Id: I3a6d523b060a0c6761b227267890298c6d2fb19f Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1673820 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_vin.c')
-rw-r--r--drivers/gpu/nvgpu/clk/clk_vin.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_vin.c b/drivers/gpu/nvgpu/clk/clk_vin.c
index 17e1c15a..6f47d2c8 100644
--- a/drivers/gpu/nvgpu/clk/clk_vin.c
+++ b/drivers/gpu/nvgpu/clk/clk_vin.c
@@ -387,16 +387,12 @@ static u32 devinit_get_vin_device_table(struct gk20a *g,
387 /* Read table entries*/ 387 /* Read table entries*/
388 vin_tbl_entry_ptr = vin_table_ptr + vin_desc_table_header.header_sizee; 388 vin_tbl_entry_ptr = vin_table_ptr + vin_desc_table_header.header_sizee;
389 for (index = 0; index < vin_desc_table_header.entry_count; index++) { 389 for (index = 0; index < vin_desc_table_header.entry_count; index++) {
390 u32 vin_id;
391
392 memcpy(&vin_desc_table_entry, vin_tbl_entry_ptr, 390 memcpy(&vin_desc_table_entry, vin_tbl_entry_ptr,
393 sizeof(struct vin_descriptor_entry_10)); 391 sizeof(struct vin_descriptor_entry_10));
394 392
395 if (vin_desc_table_entry.vin_device_type == CTRL_CLK_VIN_TYPE_DISABLED) 393 if (vin_desc_table_entry.vin_device_type == CTRL_CLK_VIN_TYPE_DISABLED)
396 continue; 394 continue;
397 395
398 vin_id = vin_desc_table_entry.vin_device_id;
399
400 vin_dev_data.super.type = 396 vin_dev_data.super.type =
401 (u8)vin_desc_table_entry.vin_device_type; 397 (u8)vin_desc_table_entry.vin_device_type;
402 vin_dev_data.id = (u8)vin_desc_table_entry.vin_device_id; 398 vin_dev_data.id = (u8)vin_desc_table_entry.vin_device_id;