Skip to content

Commit eba6d0f

Browse files
krzkBartosz Golaszewski
authored andcommitted
power: sequencing: simplify returning pointer without cleanup
Use 'return_ptr' helper for returning a pointer without cleanup for shorter code. Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 6140d18 commit eba6d0f

File tree

1 file changed

+1
-1
lines changed
  • drivers/power/sequencing

1 file changed

+1
-1
lines changed

drivers/power/sequencing/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ struct pwrseq_desc *pwrseq_get(struct device *dev, const char *target)
687687
/* No device matched. */
688688
return ERR_PTR(-EPROBE_DEFER);
689689

690-
return no_free_ptr(desc);
690+
return_ptr(desc);
691691
}
692692
EXPORT_SYMBOL_GPL(pwrseq_get);
693693

0 commit comments

Comments
 (0)