diff options
author | Rolf Evers-Fischer <rolf.evers.fischer@aptiv.com> | 2018-02-28 20:32:18 +0300 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2018-03-01 14:58:18 +0300 |
commit | 36cc14ac14c0d49d33820a82dab52a7edc802fef (patch) | |
tree | e105a05c3ac92b47ff21872edb24f4eb1ea30746 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) | |
download | linux-36cc14ac14c0d49d33820a82dab52a7edc802fef.tar.xz |
PCI: endpoint: Simplify name allocation for EPF device
This commit replaces allocating and freeing the intermediate
'buf'/'func_name' with a combination of 'kstrndup()' and 'len'.
'len' is the required length of 'epf->name'.
'epf->name' should be either the first part of 'name' preceding the '.'
or the complete 'name', if there is no '.' in the name.
Signed-off-by: Rolf Evers-Fischer <rolf.evers.fischer@aptiv.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions