From: Chunhe Lan Date: Wed, 7 Mar 2012 07:16:26 +0000 (+0800) Subject: PCI: fix uninitialized variable 'cap_mask' X-Git-Tag: v3.5-rc1~179^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1267b3a325f00291e847ea4a001ccabe5d5516f2;p=pandora-kernel.git PCI: fix uninitialized variable 'cap_mask' Get rid of these: drivers/pci/pcie/portdrv_core.c: In function 'pcie_port_device_register': drivers/pci/pcie/portdrv_core.c:275:16: warning: 'cap_mask' may be used uninitialized in this function [-Wuninitialized] drivers/pci/pcie/portdrv_core.c:240:6: note: 'cap_mask' was declared here In some cases, 'cap_mask' may be not set in pcie_port_platform_notify, holding a garbage value. Signed-off-by: Chunhe Lan Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed