Skip to content

Commit

Permalink
[MIPS] Fix warning in get_user when fetching pointer object from user…
Browse files Browse the repository at this point in the history
…space.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Feb 10, 2007
1 parent 761fc19 commit 4ed3a77
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/asm-mips/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,6 @@ do { \
*/
#define __get_user_asm_ll32(val, addr) \
{ \
unsigned long long __gu_tmp; \
\
__asm__ __volatile__( \
"1: lw %1, (%3) \n" \
"2: lw %D1, 4(%3) \n" \
Expand All @@ -281,9 +279,8 @@ do { \
" " __UA_ADDR " 1b, 4b \n" \
" " __UA_ADDR " 2b, 4b \n" \
" .previous \n" \
: "=r" (__gu_err), "=&r" (__gu_tmp) \
: "=r" (__gu_err), "=&r" (val) \
: "0" (0), "r" (addr), "i" (-EFAULT)); \
(val) = (__typeof__(*(addr))) __gu_tmp; \
}

/*
Expand Down

0 comments on commit 4ed3a77

Please sign in to comment.