summaryrefslogtreecommitdiff
path: root/drivers/misc/genwqe
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2014-04-15 00:59:50 +0400
committerBjorn Helgaas <bhelgaas@google.com>2014-04-15 01:15:34 +0400
commit1406276c1254d761da7c16b30aa32e3af2b3612a (patch)
tree656f0d92eade2f9d0c78cf618b4b9031ce48c796 /drivers/misc/genwqe
parent9ada07b1100a9c7d3107c47673664194574b02a0 (diff)
downloadlinux-1406276c1254d761da7c16b30aa32e3af2b3612a.tar.xz
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 <jbeulich@suse.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/genwqe')
0 files changed, 0 insertions, 0 deletions