|
From: | Juan Quintela |
Subject: | Re: [Qemu-devel] [PATCH 11/14] linux-user: fpu_save_addr is not used |
Date: | Thu, 02 Jun 2011 16:59:49 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Peter Maydell <address@hidden> wrote: > On 2 June 2011 12:53, Juan Quintela <address@hidden> wrote: >> It is only read to set the error code? > >> err |= __get_user(fpu_save_addr, &sf->fpu_save); >> - >> + (void)fpu_save_addr; > > In linux-user __get_user can never generate an error: faults > are always caught by the lock_user_struct() or equivalent call > done beforehand. The error handling is I think a leftover from > code borrowed from the kernel (which does have a __get_user > that might return an error). > > So I think the correct fix here is just to remove the __get_user > lines and the variables if they're not used. Fine with me. Will do for next series. Later, Juan.
[Prev in Thread] | Current Thread | [Next in Thread] |