Received: from eggs.gnu.org ([2001:4830:134:3::10]:40831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXnpE-0003l9-Vo for qemu-devel@nongnu.org; Mon, 22 Feb 2016 05:34:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXnpA-0008EM-VW for qemu-devel@nongnu.org; Mon, 22 Feb 2016 05:34:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXnpA-0008EF-Pt for qemu-devel@nongnu.org; Mon, 22 Feb 2016 05:34:40 -0500 From: Paolo Bonzini Date: Mon, 22 Feb 2016 11:34:37 +0100 Message-Id: <1456137277-12666-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH] hpet: remove unnecessary code from post_load callback List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: alex@csgraf.de The flags are already specified on the command line, so it is not necessary to get them back from the migration stream. They should be already equal on the source and destination machine, unless the destination machine is configured incorrectly. Signed-off-by: Paolo Bonzini --- hw/timer/hpet.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c index 0ad5420..4aa7293 100644 --- a/hw/timer/hpet.c +++ b/hw/timer/hpet.c @@ -266,11 +266,6 @@ static int hpet_post_load(void *opaque, int version_id) s->capability |= (s->num_timers - 1) << HPET_ID_NUM_TIM_SHIFT; hpet_cfg.hpet[s->hpet_id].event_timer_block_id = (uint32_t)s->capability; - /* Derive HPET_MSI_SUPPORT from the capability of the first timer. */ - s->flags &= ~(1 << HPET_MSI_SUPPORT); - if (s->timer[0].config & HPET_TN_FSB_CAP) { - s->flags |= 1 << HPET_MSI_SUPPORT; - } return 0; } -- 2.5.0