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>
This commit is contained in:
Andy Shevchenko 2024-08-21 18:48:22 +03:00 committed by Greg Kroah-Hartman
parent adcae2048d
commit d1363030d8

View File

@ -1084,10 +1084,8 @@ int device_links_check_suppliers(struct device *dev)
} }
device_links_missing_supplier(dev); device_links_missing_supplier(dev);
dev_err_probe(dev, -EPROBE_DEFER, ret = dev_err_probe(dev, -EPROBE_DEFER,
"supplier %s not ready\n", "supplier %s not ready\n", dev_name(link->supplier));
dev_name(link->supplier));
ret = -EPROBE_DEFER;
break; break;
} }
WRITE_ONCE(link->status, DL_STATE_CONSUMER_PROBE); WRITE_ONCE(link->status, DL_STATE_CONSUMER_PROBE);