Skip to contentSkip to conversation

remoteproc: Get rid of tedious error path

PATCH Markus Elfring 2 participants 2 messages Apr 14, 2020

lore
Share & tools
lore
#0 lore raw

…

Quoted 1 line

+++ b/drivers/remoteproc/remoteproc_core.c

…

Quoted 1 line
(quoted diff) +0 -0
@@ -2105,11 +2104,8 @@ struct rproc *rproc_alloc(struct device *dev, const char *name,

…

Review

Quoted 2 lines
(quoted diff) +2 -0
+out:
+	put_device(&rproc->dev);

How do you think about to use the label “put_device”?

Regards,
Markus

#1 lore raw
Quoted 9 lines · Markus Elfring

…

Quoted 1 line

+++ b/drivers/remoteproc/remoteproc_core.c

…

Quoted 1 line
(quoted diff) +0 -0
@@ -2105,11 +2104,8 @@ struct rproc *rproc_alloc(struct device *dev, const char *name,

…

Review

Quoted 2 lines
(quoted diff) +2 -0
+out:
+	put_device(&rproc->dev);

How do you think about to use the label “put_device”?

+1

Quoted 4 lines

Regards,
Markus