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

Avoid warnings about use of cast expressions as lvalues

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Al Viro and committed by Linus Torvalds 815f597b 09cc07a5

+4 -3
+4 -3
sound/oss/dmasound/dmasound_paula.c
··· 245 245 u_char frame[], ssize_t *frameUsed, \ 246 246 ssize_t frameLeft) \ 247 247 { \ 248 + const u_short *ptr = (const u_short *)userPtr; \ 248 249 ssize_t count, used; \ 249 250 u_short data; \ 250 251 \ ··· 255 254 count = min_t(size_t, userCount, frameLeft)>>1 & ~1; \ 256 255 used = count*2; \ 257 256 while (count > 0) { \ 258 - if (get_user(data, ((u_short *)userPtr)++)) \ 257 + if (get_user(data, ptr++)) \ 259 258 return -EFAULT; \ 260 259 data = convsample(data); \ 261 260 *high++ = data>>8; \ ··· 270 269 count = min_t(size_t, userCount, frameLeft)>>2 & ~1; \ 271 270 used = count*4; \ 272 271 while (count > 0) { \ 273 - if (get_user(data, ((u_short *)userPtr)++)) \ 272 + if (get_user(data, ptr++)) \ 274 273 return -EFAULT; \ 275 274 data = convsample(data); \ 276 275 *lefth++ = data>>8; \ 277 276 *leftl++ = (data>>2) & 0x3f; \ 278 - if (get_user(data, ((u_short *)userPtr)++)) \ 277 + if (get_user(data, ptr++)) \ 279 278 return -EFAULT; \ 280 279 data = convsample(data); \ 281 280 *righth++ = data>>8; \