From patchwork Tue Jun 1 18:32:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 54286 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B865FB7D1C for ; Wed, 2 Jun 2010 05:14:39 +1000 (EST) Received: from localhost ([127.0.0.1]:50236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJWv6-0004hu-Sn for incoming@patchwork.ozlabs.org; Tue, 01 Jun 2010 15:14:36 -0400 Received: from [140.186.70.92] (port=50420 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJWVi-0001Y2-F8 for qemu-devel@nongnu.org; Tue, 01 Jun 2010 14:48:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJWGV-0006o2-TS for qemu-devel@nongnu.org; Tue, 01 Jun 2010 14:32:41 -0400 Received: from oxygen.pond.sub.org ([213.239.205.148]:44327) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJWGV-0006ms-MQ for qemu-devel@nongnu.org; Tue, 01 Jun 2010 14:32:39 -0400 Received: from blackfin.pond.sub.org (pD9E39C24.dip.t-dialin.net [217.227.156.36]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 4DA9A2E2B36 for ; Tue, 1 Jun 2010 20:32:36 +0200 (CEST) Received: by blackfin.pond.sub.org (Postfix, from userid 500) id CA1F92BB; Tue, 1 Jun 2010 20:32:35 +0200 (CEST) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Tue, 1 Jun 2010 20:32:24 +0200 Message-Id: <1275417155-28244-4-git-send-email-armbru@redhat.com> X-Mailer: git-send-email 1.6.6.1 In-Reply-To: <1275417155-28244-1-git-send-email-armbru@redhat.com> References: <1275417155-28244-1-git-send-email-armbru@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: kwolf@redhat.com, kraxel@redhat.com Subject: [Qemu-devel] [PATCH 03/14] usb: Remove unused usb_device_add() parameter is_hotplug X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Unused since commit b3e461d3. Signed-off-by: Markus Armbruster --- vl.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vl.c b/vl.c index 9283469..76a9b25 100644 --- a/vl.c +++ b/vl.c @@ -1315,7 +1315,7 @@ static void smp_parse(const char *optarg) /***********************************************************/ /* USB devices */ -static int usb_device_add(const char *devname, int is_hotplug) +static int usb_device_add(const char *devname) { const char *p; USBDevice *dev = NULL; @@ -1367,7 +1367,7 @@ static int usb_device_del(const char *devname) static int usb_parse(const char *cmdline) { int r; - r = usb_device_add(cmdline, 0); + r = usb_device_add(cmdline); if (r < 0) { fprintf(stderr, "qemu: could not add USB device '%s'\n", cmdline); } @@ -1377,7 +1377,7 @@ static int usb_parse(const char *cmdline) void do_usb_add(Monitor *mon, const QDict *qdict) { const char *devname = qdict_get_str(qdict, "devname"); - if (usb_device_add(devname, 1) < 0) { + if (usb_device_add(devname) < 0) { error_report("could not add USB device '%s'", devname); } }