diff options
author | Lang Dai <langx.dai@intel.com> | 2017-05-09 23:14:52 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-09 23:14:52 +0000 |
commit | 84d443eeb91c2cf051ead7ab2391d9b126c9ca25 (patch) | |
tree | 1850853c26aeaf4a194cab09cab18f5fbc06919c | |
parent | d1a6b125afd018de724aba8ba25920d4796084ee (diff) | |
parent | 7fe2b490b8b3e9c8c82ac9eeb3d0422e18d3eae8 (diff) | |
download | hwcomposer-84d443eeb91c2cf051ead7ab2391d9b126c9ca25.tar.gz |
Fixed Klocwork warnings. am: cc0ec6239a
am: 7fe2b490b8
Change-Id: I7f14c1d607c052ca6245b99e093e525d8356a87a
-rw-r--r-- | moorefield_hdmi/ips/common/WsbmWrapper.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/moorefield_hdmi/ips/common/WsbmWrapper.c b/moorefield_hdmi/ips/common/WsbmWrapper.c index 8d7c275..cdbf951 100644 --- a/moorefield_hdmi/ips/common/WsbmWrapper.c +++ b/moorefield_hdmi/ips/common/WsbmWrapper.c @@ -136,7 +136,8 @@ int psbWsbmInitialize(int drmFD) goto out; } - VLOGTRACE("ioctl offset %#x", arg.rep.driver_ioctl_offset); + unsigned int ioctl_offset = arg.rep.driver_ioctl_offset; + ILOGTRACE("ioctl offset %#x", ioctl_offset); mainPool = wsbmTTMPoolInit(drmFD, arg.rep.driver_ioctl_offset); if(!mainPool) { @@ -356,8 +357,9 @@ void * psbWsbmGetCPUAddress(void * buf) return NULL; } + unsigned long buf_size = wsbmBOSize((struct _WsbmBufferObject *)buf); VLOGTRACE("mapped successfully. %p, size %ld", - address, wsbmBOSize((struct _WsbmBufferObject *)buf)); + address, buf_size); return address; } @@ -374,7 +376,8 @@ uint32_t psbWsbmGetGttOffset(void * buf) uint32_t offset = wsbmBOOffsetHint((struct _WsbmBufferObject *)buf) - 0x10000000; - VLOGTRACE("offset %#x", offset >> 12); + uint32_t offset_tmp = offset >> 12; + VLOGTRACE("offset %#x", offset_tmp); return offset >> 12; } |