From patchwork Thu Aug 20 04:28:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yuanhan Liu X-Patchwork-Id: 509042 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 38EFF140293 for ; Thu, 20 Aug 2015 23:13:22 +1000 (AEST) Received: from localhost ([::1]:59237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSPeg-0005bm-FN for incoming@patchwork.ozlabs.org; Thu, 20 Aug 2015 09:13:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSHSq-0001n6-5M for qemu-devel@nongnu.org; Thu, 20 Aug 2015 00:28:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSHSm-0003nE-WF for qemu-devel@nongnu.org; Thu, 20 Aug 2015 00:28:32 -0400 Received: from mga03.intel.com ([134.134.136.65]:2769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSHSm-0003ja-RO for qemu-devel@nongnu.org; Thu, 20 Aug 2015 00:28:28 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 19 Aug 2015 21:28:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,713,1432623600"; d="scan'208";a="787502523" Received: from yliu-dev.sh.intel.com ([10.239.66.64]) by orsmga002.jf.intel.com with ESMTP; 19 Aug 2015 21:28:25 -0700 From: Yuanhan Liu To: qemu-devel@nongnu.org Date: Thu, 20 Aug 2015 12:28:26 +0800 Message-Id: <1440044906-14248-1-git-send-email-yuanhan.liu@linux.intel.com> X-Mailer: git-send-email 1.9.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 134.134.136.65 X-Mailman-Approved-At: Thu, 20 Aug 2015 09:12:33 -0400 Cc: Yuanhan Liu , "Michael S. Tsirkin" Subject: [Qemu-devel] [PATCH] vhost: remove unnecessary code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org We won't reference var 'i' anymore; there is no need to assign a value to it. cc: Michael S. Tsirkin Signed-off-by: Yuanhan Liu Reviewed-by: Marc-André Lureau --- hw/virtio/vhost.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index 2712c6f..86ea26f 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -1158,7 +1158,6 @@ fail_vq: hdev->vqs + i, hdev->vq_index + i); } - i = hdev->nvqs; fail_mem: fail_features: