Commit 815f597b authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

[PATCH] m68k: dmasound_paula.c lvalues abuse (from m68k CVS)

Avoid warnings about use of cast expressions as lvalues
Signed-off-by: default avatarRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 09cc07a5
...@@ -245,6 +245,7 @@ static ssize_t funcname(const u_char *userPtr, size_t userCount, \ ...@@ -245,6 +245,7 @@ static ssize_t funcname(const u_char *userPtr, size_t userCount, \
u_char frame[], ssize_t *frameUsed, \ u_char frame[], ssize_t *frameUsed, \
ssize_t frameLeft) \ ssize_t frameLeft) \
{ \ { \
const u_short *ptr = (const u_short *)userPtr; \
ssize_t count, used; \ ssize_t count, used; \
u_short data; \ u_short data; \
\ \
...@@ -254,7 +255,7 @@ static ssize_t funcname(const u_char *userPtr, size_t userCount, \ ...@@ -254,7 +255,7 @@ static ssize_t funcname(const u_char *userPtr, size_t userCount, \
count = min_t(size_t, userCount, frameLeft)>>1 & ~1; \ count = min_t(size_t, userCount, frameLeft)>>1 & ~1; \
used = count*2; \ used = count*2; \
while (count > 0) { \ while (count > 0) { \
if (get_user(data, ((u_short *)userPtr)++)) \ if (get_user(data, ptr++)) \
return -EFAULT; \ return -EFAULT; \
data = convsample(data); \ data = convsample(data); \
*high++ = data>>8; \ *high++ = data>>8; \
...@@ -269,12 +270,12 @@ static ssize_t funcname(const u_char *userPtr, size_t userCount, \ ...@@ -269,12 +270,12 @@ static ssize_t funcname(const u_char *userPtr, size_t userCount, \
count = min_t(size_t, userCount, frameLeft)>>2 & ~1; \ count = min_t(size_t, userCount, frameLeft)>>2 & ~1; \
used = count*4; \ used = count*4; \
while (count > 0) { \ while (count > 0) { \
if (get_user(data, ((u_short *)userPtr)++)) \ if (get_user(data, ptr++)) \
return -EFAULT; \ return -EFAULT; \
data = convsample(data); \ data = convsample(data); \
*lefth++ = data>>8; \ *lefth++ = data>>8; \
*leftl++ = (data>>2) & 0x3f; \ *leftl++ = (data>>2) & 0x3f; \
if (get_user(data, ((u_short *)userPtr)++)) \ if (get_user(data, ptr++)) \
return -EFAULT; \ return -EFAULT; \
data = convsample(data); \ data = convsample(data); \
*righth++ = data>>8; \ *righth++ = data>>8; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment