Re: [Spice-devel] [spice-gtk v1] usb-device-widget: remove goto/label

2018-04-20 Thread Eduardo Lima (Etrunko)
On 17/04/18 04:40, Victor Toso wrote: > From: Victor Toso > > The 'end' label is used only once and can be replaced by moving the > code into the existing 'if (!devices)'. > > For convenience this patch also: > * Explicit check against NULL > * Added curly brackets to the moved 'for' > * Moved v

[Spice-devel] [spice-gtk v1] usb-device-widget: remove goto/label

2018-04-17 Thread Victor Toso
From: Victor Toso The 'end' label is used only once and can be replaced by moving the code into the existing 'if (!devices)'. For convenience this patch also: * Explicit check against NULL * Added curly brackets to the moved 'for' * Moved variable 'i' to inner scope Signed-off-by: Victor Toso