From patchwork Mon Apr 12 09:34:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wzt wzt X-Patchwork-Id: 91938 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3C1ZYNP021451 for ; Mon, 12 Apr 2010 01:35:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751338Ab0DLBe7 (ORCPT ); Sun, 11 Apr 2010 21:34:59 -0400 Received: from mail-yx0-f171.google.com ([209.85.210.171]:51751 "EHLO mail-yx0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751067Ab0DLBe6 (ORCPT ); Sun, 11 Apr 2010 21:34:58 -0400 Received: by yxe1 with SMTP id 1so2297039yxe.33 for ; Sun, 11 Apr 2010 18:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=f2i7+AuQBGXBjkH6+9l+ntz5yW87Jw1CuzSA8GMg4jE=; b=TLiJ3th9QLBejV0om/twAcL+hLp/E/hzdDXD2NLOuAwCCtpYQFMqBqUwuRxGfvQ1ha LdY+SUcjLRLy04yoh/jwz77+Mfm8cgscZ/1L1VIhJKc6M6NVgwL4qZxznTvG6wR3P47N 5MYqjdW0dGnc7qKK5cWCQouqcUEp6VPh1q6Ok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=mNwjcalNZDCtW99bR1GgAsLaAsDYdj59cRcZKyu4cGZkLRkb5026kI+8Wgvmp0v/Mc K2vR9Jt0NrCDHB4woCw55yBJaVhctARmcd6Vp62DJW79u3KLlrrAxGBXlb3C6q47zUtJ 81awSu0H4TOMmGE6OiQ9mgFOIYGyAFgt3bBkY= Received: by 10.101.172.1 with SMTP id z1mr5824712ano.243.1271036097422; Sun, 11 Apr 2010 18:34:57 -0700 (PDT) Received: from localhost ([121.0.29.206]) by mx.google.com with ESMTPS id 9sm993392ywe.7.2010.04.11.18.34.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 11 Apr 2010 18:34:56 -0700 (PDT) Date: Mon, 12 Apr 2010 17:34:52 +0800 From: wzt.wzt@gmail.com To: linux-kernel@vger.kernel.org Cc: avi@redhat.com, mtosatti@redhat.com, kvm@vger.kernel.org Subject: [PATCH] KVM: remove unused code in kvm_coalesced_mmio_init() Message-ID: <20100412093452.GB2707@localhost.localdomain> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 12 Apr 2010 01:35:48 +0000 (UTC) diff --git a/virt/kvm/coalesced_mmio.c b/virt/kvm/coalesced_mmio.c index 5169736..c0dcfb7 100644 --- a/virt/kvm/coalesced_mmio.c +++ b/virt/kvm/coalesced_mmio.c @@ -101,7 +101,6 @@ int kvm_coalesced_mmio_init(struct kvm *kvm) goto out_err; kvm->coalesced_mmio_ring = page_address(page); - ret = -ENOMEM; dev = kzalloc(sizeof(struct kvm_coalesced_mmio_dev), GFP_KERNEL); if (!dev) goto out_free_page;