ref: d0f406366c7581409a3fbb05510d645380ba9ebd
parent: 35540898381c3b11dde7f1e88cd36932adc4b919
author: James Zern <[email protected]>
date: Tue Oct 6 18:51:35 EDT 2015
vpx_memset16: drop unnecessary local + add a cast Change-Id: I2965e7867223aa25bf688c988629ac57b4971905
--- a/vpx_mem/vpx_mem.c
+++ b/vpx_mem/vpx_mem.c
@@ -94,10 +94,9 @@
#if CONFIG_VP9_HIGHBITDEPTH
void *vpx_memset16(void *dest, int val, size_t length) {
size_t i;
- void *orig = dest;
- uint16_t *dest16 = dest;
+ uint16_t *dest16 = (uint16_t *)dest;
for (i = 0; i < length; i++)
*dest16++ = val;
- return orig;
+ return dest;
}
#endif // CONFIG_VP9_HIGHBITDEPTH