Skip to content

Commit

Permalink
[PATCH] nvidiafb: fix unreachable code in nv10GetConfig
Browse files Browse the repository at this point in the history
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>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Acked-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Nathan Lynch authored and Linus Torvalds committed Nov 14, 2006
1 parent ba8df43 commit d6e89cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/nvidia/nv_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static void nv10GetConfig(struct nvidia_par *par)
#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);
Expand Down

0 comments on commit d6e89cb

Please sign in to comment.