git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ada07b
)
PCI/MSI: Simplify populate_msi_sysfs()
author
Jan Beulich
<JBeulich@suse.com>
Mon, 14 Apr 2014 20:59:50 +0000
(14:59 -0600)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Mon, 14 Apr 2014 21:15:34 +0000
(15:15 -0600)
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>
drivers/pci/msi.c
patch
|
blob
|
history
diff --cc
drivers/pci/msi.c
Simple merge