linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nvidiafb: fix unreachable code in nv10GetConfig
@ 2006-11-08 19:55 Nathan Lynch
  2006-11-08 20:13 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Nathan Lynch @ 2006-11-08 19:55 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, linux-fbdev-devel

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 <ntl@pobox.com>

--- 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);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-11-12 22:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-08 19:55 [PATCH] nvidiafb: fix unreachable code in nv10GetConfig Nathan Lynch
2006-11-08 20:13 ` Andrew Morton
2006-11-08 22:04   ` Nathan Lynch
2006-11-12 22:20     ` James Simmons

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).