mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
remoteproc: Use kstrdup_const() rather than kstrdup()
For cases where @firmware is declared "const char *", use function kstrdup_const() to avoid needlessly creating another copy on the heap. Suggested-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Alex Elder <elder@linaro.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20200420231601.16781-2-mathieu.poirier@linaro.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
1f36ab3f6e
commit
1487deda19
2 changed files with 5 additions and 5 deletions
|
@ -489,7 +489,7 @@ struct rproc {
|
|||
struct list_head node;
|
||||
struct iommu_domain *domain;
|
||||
const char *name;
|
||||
char *firmware;
|
||||
const char *firmware;
|
||||
void *priv;
|
||||
struct rproc_ops *ops;
|
||||
struct device dev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue