mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
[PATCH] nvidiafb: fix unreachable code in nv10GetConfig
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>
This commit is contained in:
parent
ba8df43c0e
commit
d6e89cb6cd
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue