History

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.

Mathieu Poirier committed 6 years ago

Commit 1487ded1 parent 1f36ab32 files · +5 −5Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/remoteproc.h+1−1
@@ -489,7 +489,7 @@ struct rproc { · 488 unmodified lines
489489 struct list_head node;
490490 struct iommu_domain *domain;
491491 const char *name;
492− char *firmware;
492+ const char *firmware;
493493 void *priv;
494494 struct rproc_ops *ops;
495495 struct device dev;