From: Jan Beulich Date: Mon, 14 Apr 2014 20:59:50 +0000 (-0600) Subject: PCI/MSI: Simplify populate_msi_sysfs() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~38^2~9^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1406276c1254d761da7c16b30aa32e3af2b3612a;p=pandora-kernel.git 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 Signed-off-by: Bjorn Helgaas Acked-by: Greg Kroah-Hartman --- Reading git-diff-tree failed