Skip to content

Commit

Permalink
nouveau: initialise has_optimus variable.
Browse files Browse the repository at this point in the history
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
Dave Airlie committed May 3, 2012
1 parent e658624 commit addde4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nouveau_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit addde4e

Please sign in to comment.