mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
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:
parent
adcae2048d
commit
d1363030d8
@ -1084,10 +1084,8 @@ int device_links_check_suppliers(struct device *dev)
|
||||
}
|
||||
|
||||
device_links_missing_supplier(dev);
|
||||
dev_err_probe(dev, -EPROBE_DEFER,
|
||||
"supplier %s not ready\n",
|
||||
dev_name(link->supplier));
|
||||
ret = -EPROBE_DEFER;
|
||||
ret = dev_err_probe(dev, -EPROBE_DEFER,
|
||||
"supplier %s not ready\n", dev_name(link->supplier));
|
||||
break;
|
||||
}
|
||||
WRITE_ONCE(link->status, DL_STATE_CONSUMER_PROBE);
|
||||
|
Loading…
Reference in New Issue
Block a user