]> sigrok.org Git - libsigrok.git/commitdiff
sr_usb_dev_inst_new(): Allow NULL as argument.
authorUwe Hermann <redacted>
Wed, 8 Mar 2017 18:31:22 +0000 (19:31 +0100)
committerUwe Hermann <redacted>
Fri, 10 Mar 2017 10:41:34 +0000 (11:41 +0100)
(documentation fix, the function always handled NULL fine)

src/device.c

index 71221433ca0321c1ee6ca95fbab3cf335448885a..a8f6f2b4dce9c0695961cbd1ec618f4d5f201ab3 100644 (file)
@@ -409,7 +409,8 @@ SR_PRIV struct sr_usb_dev_inst *sr_usb_dev_inst_new(uint8_t bus,
 /**
  * Free struct sr_usb_dev_inst * allocated by sr_usb_dev_inst().
  *
- * @param usb The struct sr_usb_dev_inst * to free. Must not be NULL.
+ * @param usb The struct sr_usb_dev_inst * to free. If NULL, this
+ *            function does nothing.
  *
  * @private
  */