]> sigrok.org Git - libsigrok.git/blobdiff - src/device.c
sr_usb_dev_inst_new(): Allow NULL as argument.
[libsigrok.git] / 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
  */