Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

driver:base:core: Adding a "Return:" line in comment for device_link_add()

The original document doesn't explain the return value directly which
leads to confusing in error checking.

You can find the reason here:
Link: https://lore.kernel.org/all/1d4c39e109bcf288d5900670e024a315.sboyd@kernel.org/

Signed-off-by: Yuesong Li <liyuesong@vivo.com>
Link: https://lore.kernel.org/r/20240821040432.4049183-1-liyuesong@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Yuesong Li and committed by
Greg Kroah-Hartman
4a74f223 b45ed06f

+3
+3
drivers/base/core.c
··· 673 673 * @supplier: Supplier end of the link. 674 674 * @flags: Link flags. 675 675 * 676 + * Return: On success, a device_link struct will be returned. 677 + * On error or invalid flag settings, NULL will be returned. 678 + * 676 679 * The caller is responsible for the proper synchronization of the link creation 677 680 * with runtime PM. First, setting the DL_FLAG_PM_RUNTIME flag will cause the 678 681 * runtime PM framework to take the link into account. Second, if the