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>
This commit is contained in:
Richard Zhao
2017-10-10 15:25:47 -07:00
committed by mobile promotions
parent 8bd5b7e3b8
commit 114cfcca58

View File

@@ -557,13 +557,13 @@ static int vgpu_fifo_update_runlist_locked(struct gk20a *g, u32 runlist_id,
if (chid != (u32)~0 || /* add/remove a valid channel */
add /* resume to add all channels back */) {
u32 chid;
u32 cid;
runlist_entry = runlist->mem[0].cpu_va;
for_each_set_bit(chid,
for_each_set_bit(cid,
runlist->active_channels, f->num_channels) {
gk20a_dbg_info("add channel %d to runlist", chid);
runlist_entry[0] = chid;
gk20a_dbg_info("add channel %d to runlist", cid);
runlist_entry[0] = cid;
runlist_entry++;
count++;
}