# \[PATCH\] nvidiafb: fix unreachable code in nv10GetConfig

- From: Nathan Lynch \<hidden\>
- Date: 2006-11-08 19:55:19 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2006/11/893613
- Thread: https://ratatoskr.run/lkml/2006/11/893613/t.md

```text
Fix binary/logical operator typo which leads to unreachable code.
Noticed while looking at other issues; I don't have the relevant
hardware to test this.


Signed-off-by: Nathan Lynch <redacted>

--- linux-2.6-powerpc.git.orig/drivers/video/nvidia/nv_setup.c
+++ linux-2.6-powerpc.git/drivers/video/nvidia/nv_setup.c
@@ -262,7 +262,7 @@ static void nv10GetConfig(struct nvidia_
 #endif
 
 	dev = pci_find_slot(0, 1);
-	if ((par->Chipset && 0xffff) == 0x01a0) {
+	if ((par->Chipset & 0xffff) == 0x01a0) {
 		int amt = 0;
 
 		pci_read_config_dword(dev, 0x7c, &amt);
```
