diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-11-18 08:55:48 +0100 |
---|---|---|
committer | Krzysztof Wilczyński <kwilczynski@kernel.org> | 2023-12-17 03:02:33 +0000 |
commit | 9f5077ef8f8157270f51f4ebd782c985d56d33c6 (patch) | |
tree | cee56717e2bda0d48fa95cccbc949ef32d2180a3 /arch/powerpc/sysdev/fsl_pci.c | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) |
PCI: kirin: Use devm_kasprintf() to dynamically allocate clock names
Use devm_kasprintf() instead of open coding it. This saves the need of
an intermediate buffer.
There was also no reason to use devm_kstrdup_const() as string is known
to be constant.
[kwilczynski: commit log, and add missing Reviewed-by tag]
Link: https://lore.kernel.org/linux-pci/1bad6879083a7d836c8a47418a0afa22485e8f69.1700294127.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'arch/powerpc/sysdev/fsl_pci.c')
0 files changed, 0 insertions, 0 deletions