浏览代码

mn10300: fix typo && -> || in arch/mn10300/unit-asb2305/pci.c

Fix the typo && -> ||.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Wei Yongjun 16 年之前
父节点
当前提交
d9190913b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/mn10300/unit-asb2305/pci.c

+ 1 - 1
arch/mn10300/unit-asb2305/pci.c

@@ -173,7 +173,7 @@ static int pci_ampci_write_config_byte(struct pci_bus *bus, unsigned int devfn,
 		BRIDGEREGB(where) = value;
 		BRIDGEREGB(where) = value;
 	} else {
 	} else {
 		if (bus->number == 0 &&
 		if (bus->number == 0 &&
-		    (devfn == PCI_DEVFN(2, 0) && devfn == PCI_DEVFN(3, 0))
+		    (devfn == PCI_DEVFN(2, 0) || devfn == PCI_DEVFN(3, 0))
 		    )
 		    )
 			__pcidebug("<= %02x", bus, devfn, where, value);
 			__pcidebug("<= %02x", bus, devfn, where, value);
 		CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where);
 		CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where);