浏览代码

PCI: Remove useless redundant code

Remove redundant code from __pci_bus_find_cap_start().  No functional
change.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Bjorn Helgaas 10 年之前
父节点
当前提交
aaed816fde
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/pci/pci.c

+ 0 - 2
drivers/pci/pci.c

@@ -195,8 +195,6 @@ static int __pci_bus_find_cap_start(struct pci_bus *bus,
 		return PCI_CAPABILITY_LIST;
 	case PCI_HEADER_TYPE_CARDBUS:
 		return PCI_CB_CAPABILITY_LIST;
-	default:
-		return 0;
 	}
 
 	return 0;