From: Aurelien Jarno <aurelien@aurel32.net>
To: TeLeMan <geleman@gmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] usb-bus: fix no params
Date: Sat, 27 Mar 2010 13:47:56 +0100 [thread overview]
Message-ID: <20100327124756.GI15194@volta.aurel32.net> (raw)
In-Reply-To: <a38b25541003182159p75e1ff04nb29ff6d3c73d7b49@mail.gmail.com>
On Fri, Mar 19, 2010 at 12:59:24PM +0800, TeLeMan wrote:
> The "params" is never NULL and the usb hid devices have no params.
This looks plainly wrong. With your patch, usb devices which don't
accept parameters, will accept and ignore them.
What are you trying to fix here?
> Signed-off-by: TeLeMan <geleman@gmail.com>
> ---
> hw/usb-bus.c | 4 ----
> 1 files changed, 0 insertions(+), 4 deletions(-)
>
> diff --git a/hw/usb-bus.c b/hw/usb-bus.c
> index ce8a694..f3f1ed6 100644
> --- a/hw/usb-bus.c
> +++ b/hw/usb-bus.c
> @@ -299,10 +299,6 @@ USBDevice *usbdevice_create(const char *cmdline)
> }
>
> if (!usb->usbdevice_init) {
> - if (params) {
> - error_report("usbdevice %s accepts no params", driver);
> - return NULL;
> - }
> return usb_create_simple(bus, usb->qdev.name);
> }
> return usb->usbdevice_init(params);
> --
> 1.6.5.1.1367.gcd48
> --
> SUN OF A BEACH
>
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
next prev parent reply other threads:[~2010-03-27 12:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-19 4:59 [Qemu-devel] [PATCH] usb-bus: fix no params TeLeMan
2010-03-27 12:47 ` Aurelien Jarno [this message]
2010-03-29 12:16 ` Kevin Wolf
2010-03-30 1:35 ` TeLeMan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100327124756.GI15194@volta.aurel32.net \
--to=aurelien@aurel32.net \
--cc=geleman@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.