From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHvq7-00081b-NP for qemu-devel@nongnu.org; Tue, 19 Mar 2013 08:40:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHvq0-0000Io-59 for qemu-devel@nongnu.org; Tue, 19 Mar 2013 08:40:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHvpz-0000IT-Tz for qemu-devel@nongnu.org; Tue, 19 Mar 2013 08:40:20 -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 r2JCeGUI025912 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 19 Mar 2013 08:40:17 -0400 Message-ID: <51485CA3.3000206@redhat.com> Date: Tue, 19 Mar 2013 13:40:03 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <1363279017-3894-1-git-send-email-hdegoede@redhat.com> <1363279017-3894-9-git-send-email-hdegoede@redhat.com> In-Reply-To: <1363279017-3894-9-git-send-email-hdegoede@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 8/8] usb-redir: Add flow control support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hans de Goede Cc: Amit Shah , =?ISO-8859-1?Q?Marc-Andr=E9_Lureau?= , qemu-devel@nongnu.org On 03/14/13 17:36, Hans de Goede wrote: > + if (!dev->watch) { > + dev->watch = qemu_chr_fe_add_watch(dev->cs, G_IO_OUT, > + usbredir_write_unblocked, dev); > + } > + if (r < 0) > + r = 0; > + } > + return r; === checkpatch complains === WARNING: braces {} are necessary for all arms of this statement #48: FILE: hw/usb/redirect.c:290: + if (r < 0) [...] total: 0 errors, 1 warnings, 65 lines checked cheers, Gerd