diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2017-03-08 19:31:22 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-03-10 11:41:34 +0100 |
commit | 5801ce7840c72775fbcfaf39e0587f767f070efd (patch) | |
tree | f379cb71b94d651df1aaca9fa648ce5f71149a95 | |
parent | 04891a997c137abb5fa423e7de7f5b9a0fd27a49 (diff) |
sr_usb_dev_inst_new(): Allow NULL as argument.
(documentation fix, the function always handled NULL fine)
-rw-r--r-- | src/device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index 7122143..a8f6f2b 100644 --- a/src/device.c +++ b/src/device.c @@ -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 */ |