sr_usb_dev_inst_new(): Allow NULL as argument.

(documentation fix, the function always handled NULL fine)
This commit is contained in:
Uwe Hermann 2017-03-08 19:31:22 +01:00
parent 04891a997c
commit 5801ce7840
1 changed files with 2 additions and 1 deletions

View 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
*/