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 core: Make use of returned value of dev_err_probe()

Instead of assigning ret explicitly to the same value that is supplied
to dev_err_probe(), make use of returned value of the latter.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240821154839.604259-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andy Shevchenko and committed by
Greg Kroah-Hartman
d1363030 adcae204

+2 -4
+2 -4
drivers/base/core.c
··· 1084 1084 } 1085 1085 1086 1086 device_links_missing_supplier(dev); 1087 - dev_err_probe(dev, -EPROBE_DEFER, 1088 - "supplier %s not ready\n", 1089 - dev_name(link->supplier)); 1090 - ret = -EPROBE_DEFER; 1087 + ret = dev_err_probe(dev, -EPROBE_DEFER, 1088 + "supplier %s not ready\n", dev_name(link->supplier)); 1091 1089 break; 1092 1090 } 1093 1091 WRITE_ONCE(link->status, DL_STATE_CONSUMER_PROBE);