Avoid warnings about use of cast expressions as lvalues Signed-Off-By: Roman Zippel --- dmasound_paula.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- linux/sound/oss/dmasound/dmasound_paula.c 2004/07/11 10:21:31 1.5 +++ linux/sound/oss/dmasound/dmasound_paula.c 2005/05/29 18:01:55 1.6 @@ -244,6 +244,7 @@ static ssize_t funcname(const u_char *us u_char frame[], ssize_t *frameUsed, \ ssize_t frameLeft) \ { \ + const u_short *ptr = (const u_short *)userPtr; \ ssize_t count, used; \ u_short data; \ \ @@ -253,7 +254,7 @@ static ssize_t funcname(const u_char *us count = min_t(size_t, userCount, frameLeft)>>1 & ~1; \ used = count*2; \ while (count > 0) { \ - if (get_user(data, ((u_short *)userPtr)++)) \ + if (get_user(data, ptr++)) \ return -EFAULT; \ data = convsample(data); \ *high++ = data>>8; \ @@ -268,12 +269,12 @@ static ssize_t funcname(const u_char *us count = min_t(size_t, userCount, frameLeft)>>2 & ~1; \ used = count*4; \ while (count > 0) { \ - if (get_user(data, ((u_short *)userPtr)++)) \ + if (get_user(data, ptr++)) \ return -EFAULT; \ data = convsample(data); \ *lefth++ = data>>8; \ *leftl++ = (data>>2) & 0x3f; \ - if (get_user(data, ((u_short *)userPtr)++)) \ + if (get_user(data, ptr++)) \ return -EFAULT; \ data = convsample(data); \ *righth++ = data>>8; \