diff options
author | Rolf Evers-Fischer <[email protected]> | 2018-02-28 18:32:18 +0100 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2018-03-01 11:58:18 +0000 |
commit | 36cc14ac14c0d49d33820a82dab52a7edc802fef (patch) | |
tree | e105a05c3ac92b47ff21872edb24f4eb1ea30746 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) |
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 <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Kishon Vijay Abraham I <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions