diff options
| author | Jan Beulich <[email protected]> | 2014-04-14 14:59:50 -0600 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2014-04-14 15:15:34 -0600 |
| commit | 1406276c1254d761da7c16b30aa32e3af2b3612a (patch) | |
| tree | 656f0d92eade2f9d0c78cf618b4b9031ce48c796 /scripts/gdb/vmlinux-gdb.py | |
| parent | 9ada07b1100a9c7d3107c47673664194574b02a0 (diff) | |
PCI/MSI: Simplify populate_msi_sysfs()
Simplify populate_msi_sysfs() by
- Swapping the order of the two allocations and storing the
msi_dev_attr-derived pointer right after allocation, allowing the
cleanup code to pick things up without extra effort.
- Using kasprintf() instead of the kmalloc()/sprintf() pair.
Signed-off-by: Jan Beulich <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/vmlinux-gdb.py')
0 files changed, 0 insertions, 0 deletions