]> git.baikalelectronics.ru Git - kernel.git/commit
PCI MSI: msi_desc->dev is always initialised
authorMatthew Wilcox <willy@linux.intel.com>
Tue, 17 Mar 2009 12:54:07 +0000 (08:54 -0400)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 20 Mar 2009 17:48:12 +0000 (10:48 -0700)
commit389be4d30651b562acc7a89a95b662ce295b2a48
treefb69768e7b05143d456b0c67d423018d9767be99
parentaa88f0f1b56dc2a2258eae5cbf1ce58b1baf7f23
PCI MSI: msi_desc->dev is always initialised

By passing the pci_dev into alloc_msi_entry() we can be sure that
the ->dev entry is always assigned and so we don't need to check it.
Also, we used kzalloc() so we don't need to initialise ->irq to 0.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/msi.c