summaryrefslogtreecommitdiff
path: root/libhwc2.1/libresource/ExynosResourceManager.cpp
diff options
context:
space:
mode:
authorHyunKyung Kim <hk310.kim@samsung.com>2020-02-10 14:32:29 +0900
committerHyunKyung Kim <hk310.kim@samsung.com>2020-03-09 17:20:22 +0900
commit595c0d08248c80623be735bf039e19a705d0294c (patch)
treeac704d9a526c5d9e686a51660b5e05c2a32cc216 /libhwc2.1/libresource/ExynosResourceManager.cpp
parentbf5ed35f7a3bb741edf6e107b79bdfaaec9691c0 (diff)
libhwc2.1: Call sizeof(variable) instead of sizeof(type)
This patch calls sizeof() with real variable instead of type. Change-Id: Ic13a7e936f298b4c70012047f8909600927382ed Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
Diffstat (limited to 'libhwc2.1/libresource/ExynosResourceManager.cpp')
-rw-r--r--libhwc2.1/libresource/ExynosResourceManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhwc2.1/libresource/ExynosResourceManager.cpp b/libhwc2.1/libresource/ExynosResourceManager.cpp
index 3b6c5cd..06ec74d 100644
--- a/libhwc2.1/libresource/ExynosResourceManager.cpp
+++ b/libhwc2.1/libresource/ExynosResourceManager.cpp
@@ -2325,7 +2325,7 @@ void ExynosResourceManager::updateRestrictions() {
mSizeRestrictionCnt[i] = restriction_tables[i].table_element_size;
for (uint32_t j = 0; j < mSizeRestrictionCnt[i]; j++) {
memcpy(&mSizeRestrictions[i][j], &restriction_tables[i].table[j],
- sizeof(restriction_size_element_t));
+ sizeof(mSizeRestrictions[i][j]));
}
}
}