Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nxdvx-0003TN-Hc for qemu-devel@nongnu.org; Fri, 02 Apr 2010 06:17:01 -0400 Received: from [140.186.70.92] (port=33763 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nxdvv-0003Sk-9p for qemu-devel@nongnu.org; Fri, 02 Apr 2010 06:17:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nxdvs-0003jo-UF for qemu-devel@nongnu.org; Fri, 02 Apr 2010 06:16:58 -0400 Received: from hall.aurel32.net ([88.191.82.174]:46010) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nxdvs-0003jc-P3 for qemu-devel@nongnu.org; Fri, 02 Apr 2010 06:16:56 -0400 Date: Fri, 2 Apr 2010 12:16:54 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCHv2] usb-bus: fix no params Message-ID: <20100402101654.GR15194@volta.aurel32.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: TeLeMan Cc: qemu-devel On Tue, Mar 30, 2010 at 09:33:24AM +0800, TeLeMan wrote: > After commit 702f3e0fb52c124c07f215426eeadb70a716643f, the params is > nerver NULL. It should check *params instead of params to determine > whether the params is empty. > > Signed-off-by: TeLeMan Thanks, applied. > --- > hw/usb-bus.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/hw/usb-bus.c b/hw/usb-bus.c > index ce8a694..ee0e9e3 100644 > --- a/hw/usb-bus.c > +++ b/hw/usb-bus.c > @@ -299,7 +299,7 @@ USBDevice *usbdevice_create(const char *cmdline) > } > > if (!usb->usbdevice_init) { > - if (params) { > + if (*params) { > error_report("usbdevice %s accepts no params", driver); > return NULL; > } > -- > 1.6.5.1.1367.gcd48 > > -- > SUN OF A BEACH > > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net