From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoCOM-0005pG-AH for qemu-devel@nongnu.org; Tue, 11 Nov 2014 09:26:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoCOF-0000BB-KX for qemu-devel@nongnu.org; Tue, 11 Nov 2014 09:25:58 -0500 Message-ID: <54621DE6.60108@gmail.com> Date: Tue, 11 Nov 2014 22:32:06 +0800 From: Chen Gang MIME-Version: 1.0 References: <5461D59C.5020106@gmail.com> <20141111142359.GB8751@konrad-lan.dumpdata.com> In-Reply-To: <20141111142359.GB8751@konrad-lan.dumpdata.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Xen-devel] [PATCH trivial] xen-hvm: Remove redandant varialbe 'xstate' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Konrad Rzeszutek Wilk , Stefano Stabellini Cc: QEMU Trivial , xen-devel@lists.xensource.com, Michael Tokarev , qemu-devel On 11/11/14 22:24, Konrad Rzeszutek Wilk wrote: > On Tue, Nov 11, 2014 at 10:53:01AM +0000, Stefano Stabellini wrote: >> On Tue, 11 Nov 2014, Chen Gang wrote: >>> In xen_hvm_change_state_handler(), can pass 'opaque' with type cast to >>> xen_main_loop_prepare() directly, need not use additional variable for >>> it. > > The title of your patch should say 'variable'. Oh, yes, thanks. If necessary to send patch v2 for it, please let me know. Thanks. >>> >>> Signed-off-by: Chen Gang >> >> Acked-by: Stefano Stabellini >> >> >>> xen-hvm.c | 3 +-- >>> 1 file changed, 1 insertion(+), 2 deletions(-) >>> >>> diff --git a/xen-hvm.c b/xen-hvm.c >>> index 21f1cbb..7548794 100644 >>> --- a/xen-hvm.c >>> +++ b/xen-hvm.c >>> @@ -993,9 +993,8 @@ static void xen_main_loop_prepare(XenIOState *state) >>> static void xen_hvm_change_state_handler(void *opaque, int running, >>> RunState rstate) >>> { >>> - XenIOState *xstate = opaque; >>> if (running) { >>> - xen_main_loop_prepare(xstate); >>> + xen_main_loop_prepare((XenIOState *)opaque); >>> } >>> } >>> >>> -- >>> 1.8.5.2 (Apple Git-48) >>> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xen.org >> http://lists.xen.org/xen-devel -- Chen Gang Open, share, and attitude like air, water, and life which God blessed