diff options
author | Richard Zhao <rizhao@nvidia.com> | 2017-10-10 18:25:47 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-12 01:34:46 -0400 |
commit | 114cfcca58b2e5ef78fc604fcf574d6d2c1e5d0b (patch) | |
tree | be5f6784102eb00ee66adb3d87a011a5be4c9342 /drivers/gpu/nvgpu | |
parent | 8bd5b7e3b86b605de936d4270373de6b72039ca6 (diff) |
gpu: nvgpu: vgpu: fix coverity of vgpu_fifo_update_runlist_locked()
coverity defect id : 2630326:
parameter_hidden: declaration hides parameter "chid" (declared at line 532)
Bug 200291879
Change-Id: I7c7189d692500c5e4df07660cdb14f746ed0e69b
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1576517
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c index 815bbfb8..9010c4a3 100644 --- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | |||
@@ -557,13 +557,13 @@ static int vgpu_fifo_update_runlist_locked(struct gk20a *g, u32 runlist_id, | |||
557 | 557 | ||
558 | if (chid != (u32)~0 || /* add/remove a valid channel */ | 558 | if (chid != (u32)~0 || /* add/remove a valid channel */ |
559 | add /* resume to add all channels back */) { | 559 | add /* resume to add all channels back */) { |
560 | u32 chid; | 560 | u32 cid; |
561 | 561 | ||
562 | runlist_entry = runlist->mem[0].cpu_va; | 562 | runlist_entry = runlist->mem[0].cpu_va; |
563 | for_each_set_bit(chid, | 563 | for_each_set_bit(cid, |
564 | runlist->active_channels, f->num_channels) { | 564 | runlist->active_channels, f->num_channels) { |
565 | gk20a_dbg_info("add channel %d to runlist", chid); | 565 | gk20a_dbg_info("add channel %d to runlist", cid); |
566 | runlist_entry[0] = chid; | 566 | runlist_entry[0] = cid; |
567 | runlist_entry++; | 567 | runlist_entry++; |
568 | count++; | 568 | count++; |
569 | } | 569 | } |