summaryrefslogtreecommitdiffstats
path: root/drivers/misc/genwqe/card_utils.c
diff options
context:
space:
mode:
authorJan Beulich2014-04-14 22:59:50 +0200
committerBjorn Helgaas2014-04-14 23:15:34 +0200
commit1406276c1254d761da7c16b30aa32e3af2b3612a (patch)
tree656f0d92eade2f9d0c78cf618b4b9031ce48c796 /drivers/misc/genwqe/card_utils.c
parentPCI/portdrv: Use pci_enable_msix_exact() instead of pci_enable_msix() (diff)
downloadkernel-qcow2-linux-1406276c1254d761da7c16b30aa32e3af2b3612a.tar.gz
kernel-qcow2-linux-1406276c1254d761da7c16b30aa32e3af2b3612a.tar.xz
kernel-qcow2-linux-1406276c1254d761da7c16b30aa32e3af2b3612a.zip
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/card_utils.c')
0 files changed, 0 insertions, 0 deletions