Home
last modified time | relevance | path

Searched hist:"36 cc14ac14c0d49d33820a82dab52a7edc802fef" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/pci/endpoint/
H A Dpci-epf-core.cdiff 36cc14ac14c0d49d33820a82dab52a7edc802fef Wed Feb 28 11:32:18 CST 2018 Rolf Evers-Fischer <rolf.evers.fischer@aptiv.com> 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>