summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libudev/libudev-queue.c')
-rw-r--r--src/libudev/libudev-queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libudev/libudev-queue.c b/src/libudev/libudev-queue.c
index 0dd20313d9..f67dba9958 100644
--- a/src/libudev/libudev-queue.c
+++ b/src/libudev/libudev-queue.c
@@ -101,7 +101,7 @@ _public_ struct udev_queue *udev_queue_ref(struct udev_queue *udev_queue)
* Drop a reference of a udev queue context. If the refcount reaches zero,
* the resources of the queue context will be released.
*
- * Returns: the passed queue context if it has still an active reference, or #NULL otherwise.
+ * Returns: #NULL
**/
_public_ struct udev_queue *udev_queue_unref(struct udev_queue *udev_queue)
{
@@ -109,7 +109,7 @@ _public_ struct udev_queue *udev_queue_unref(struct udev_queue *udev_queue)
return NULL;
udev_queue->refcount--;
if (udev_queue->refcount > 0)
- return udev_queue;
+ return NULL;
udev_list_cleanup(&udev_queue->queue_list);
free(udev_queue);
return NULL;