Re: [PATCH spice-gtk 13/14] usb: do not return GError on programmer pre-condition checks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, Apr 23, 2014 at 11:43 PM, Jonathon Jongsma <jjongsma@xxxxxxxxxx> wrote:
Why return FALSE without setting error?  Doesn't that violate the contract for initable? From the docs:

  Returns: TRUE if successful. If an error has occurred, this function will return FALSE and set error appropriately if present.

Those are programmer pre-condition checks. They should be unreachable at runtime. Anyway, they can safely be removed or moved to spice_usb_device_manager_get(), which is how I changed the patch.


--
Marc-André Lureau
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]