Skip to content

Commit d136303

Browse files
andy-shevgregkh
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent adcae20 commit d136303

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/base/core.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,10 +1084,8 @@ int device_links_check_suppliers(struct device *dev)
10841084
}
10851085

10861086
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));
10911089
break;
10921090
}
10931091
WRITE_ONCE(link->status, DL_STATE_CONSUMER_PROBE);

0 commit comments

Comments
 (0)