diff options
author | Shijie Qin <shijie.qin@nxp.com> | 2020-08-13 12:16:44 +0800 |
---|---|---|
committer | Shijie Qin <shijie.qin@nxp.com> | 2020-08-13 17:20:32 +0800 |
commit | 31b92c7ddf6ed7458f993924801907c1fd05993c (patch) | |
tree | d8e7b1ae45d708e7eadb712d993e9823c59dcdfe /drivers/mxc | |
parent | 2f7a8e07a32800030813484f6fd899d1201c89c6 (diff) |
LF-2111: mxc: vpu_windsor: Avoid hide parameter
Fix declaration hides parameter 'attr'.
(coverity ID 5572378)
Signed-off-by: Shijie Qin <shijie.qin@nxp.com>
Reviewed-by: ming_qian <ming.qian@nxp.com>
Diffstat (limited to 'drivers/mxc')
-rw-r--r-- | drivers/mxc/vpu_windsor/vpu_encoder_b0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mxc/vpu_windsor/vpu_encoder_b0.c b/drivers/mxc/vpu_windsor/vpu_encoder_b0.c index 021bf5e79bf6..432031d67246 100644 --- a/drivers/mxc/vpu_windsor/vpu_encoder_b0.c +++ b/drivers/mxc/vpu_windsor/vpu_encoder_b0.c @@ -4679,10 +4679,10 @@ static ssize_t show_memory_info(struct device *dev, num += scnprintf(buf + num, PAGE_SIZE - num, "core[%d]\n", i); for (j = 0; j < ARRAY_SIZE(core->attr); j++) { - struct vpu_attr *attr = &core->attr[j]; + struct vpu_attr *attr_loc = &core->attr[j]; unsigned long size; - size = atomic64_read(&attr->total_dma_size); + size = atomic64_read(&attr_loc->total_dma_size); total_dma_size += size; num += scnprintf(buf + num, PAGE_SIZE - num, "\t[%d] : %ld\n", j, size); |