From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRuVT-0008UE-Ku for qemu-devel@nongnu.org; Tue, 26 Jul 2016 01:02:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRuVO-0006V8-5Y for qemu-devel@nongnu.org; Tue, 26 Jul 2016 01:02:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRuVN-0006Uy-Vz for qemu-devel@nongnu.org; Tue, 26 Jul 2016 01:02:10 -0400 Date: Tue, 26 Jul 2016 10:31:59 +0530 From: Amit Shah Message-ID: <20160726050159.GA27202@grmbl.mre> References: <1467733400-17206-1-git-send-email-mst@redhat.com> <20160705184740-mutt-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160705184740-mutt-send-email-mst@redhat.com> Subject: Re: [Qemu-devel] [PULL v2 27/30] mptsas: remove unnecessary internal msi state flag List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, Marcel Apfelbaum , Peter Maydell , Cao jin , Markus Armbruster , Paolo Bonzini On (Tue) 05 Jul 2016 [18:47:40], Michael S. Tsirkin wrote: > From: Cao jin > > internal flag msi_in_use in unnecessary, msi_uninit() could be called > directly, and msi_enabled() is enough to check device msi state. > > cc: Markus Armbruster > cc: Marcel Apfelbaum > cc: Paolo Bonzini > cc: Michael S. Tsirkin > > Reviewed-by: Markus Armbruster > Signed-off-by: Cao jin > Reviewed-by: Michael S. Tsirkin > Signed-off-by: Michael S. Tsirkin [...] > static void mptsas_reset(DeviceState *dev) > @@ -1375,7 +1370,6 @@ static const VMStateDescription vmstate_mptsas = { > .post_load = mptsas_post_load, > .fields = (VMStateField[]) { > VMSTATE_PCI_DEVICE(dev, MPTSASState), > - VMSTATE_BOOL(msi_in_use, MPTSASState), This removes vmstate -- please use 'unused' instead of removing this value. Flagged by the static checker. Amit