[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240703083038.95777-1-krzysztof.kozlowski@linaro.org>
Date: Wed, 3 Jul 2024 10:30:38 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Bartosz Golaszewski <brgl@...ev.pl>,
linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: [PATCH] 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 <krzysztof.kozlowski@...aro.org>
---
drivers/power/sequencing/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/sequencing/core.c b/drivers/power/sequencing/core.c
index 9e606c9f6f04..9c32b07a55e7 100644
--- a/drivers/power/sequencing/core.c
+++ b/drivers/power/sequencing/core.c
@@ -687,7 +687,7 @@ struct pwrseq_desc *pwrseq_get(struct device *dev, const char *target)
/* No device matched. */
return ERR_PTR(-EPROBE_DEFER);
- return no_free_ptr(desc);
+ return_ptr(desc);
}
EXPORT_SYMBOL_GPL(pwrseq_get);
--
2.43.0
Powered by blists - more mailing lists