Skip to content
Browse files

nouveau: initialise has_optimus variable.

We should initialise this to 0 really to avoid getting false positives.

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information...
1 parent e658624 commit addde4ec31456c5f1e9b61aae3edcfeb0f338f87 Dave Airlie committed May 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 drivers/gpu/drm/nouveau/nouveau_acpi.c
View
2 drivers/gpu/drm/nouveau/nouveau_acpi.c
@@ -270,7 +270,7 @@ static bool nouveau_dsm_detect(void)
struct acpi_buffer buffer = {sizeof(acpi_method_name), acpi_method_name};
struct pci_dev *pdev = NULL;
int has_dsm = 0;
- int has_optimus;
+ int has_optimus = 0;
int vga_count = 0;
bool guid_valid;
int retval;

0 comments on commit addde4e

Please sign in to comment.
Something went wrong with that request. Please try again.