From patchwork Wed Oct 24 21:44:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 1640621 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C409E40135 for ; Wed, 24 Oct 2012 21:43:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422663Ab2JXVnE (ORCPT ); Wed, 24 Oct 2012 17:43:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36933 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161223Ab2JXVnB (ORCPT ); Wed, 24 Oct 2012 17:43:01 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9OLguLj025273 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 24 Oct 2012 17:42:56 -0400 Received: from blackpad.lan.raisama.net (vpn1-4-109.gru2.redhat.com [10.97.4.109]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q9OLgtPk026313; Wed, 24 Oct 2012 17:42:55 -0400 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id C07FF20048A; Wed, 24 Oct 2012 19:44:25 -0200 (BRST) From: Eduardo Habkost To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, Avi Kivity , Marcelo Tosatti , andre.przywara@amd.com, Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [QEMU PATCH 1/3] target-i385: make cpu_x86_fill_host() void Date: Wed, 24 Oct 2012 19:44:05 -0200 Message-Id: <1351115047-27828-2-git-send-email-ehabkost@redhat.com> In-Reply-To: <1351115047-27828-1-git-send-email-ehabkost@redhat.com> References: <1351115047-27828-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org The return value of that function is always 0, and is always ignored. Signed-off-by: Eduardo Habkost --- target-i386/cpu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 38fca92..42171c9 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -742,7 +742,7 @@ static int cpu_x86_fill_model_id(char *str) return 0; } -static int cpu_x86_fill_host(x86_def_t *x86_cpu_def) +static void cpu_x86_fill_host(x86_def_t *x86_cpu_def) { uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0; @@ -795,8 +795,6 @@ static int cpu_x86_fill_host(x86_def_t *x86_cpu_def) * unsupported ones later. */ x86_cpu_def->svm_features = -1; - - return 0; } static int unavailable_host_feature(struct model_features_t *f, uint32_t mask)