]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
nouveau: initialise has_optimus variable.
authorDave Airlie <airlied@redhat.com>
Wed, 2 May 2012 19:26:24 +0000 (20:26 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:51 +0000 (13:14 +0100)
commit addde4ec31456c5f1e9b61aae3edcfeb0f338f87 upstream.

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

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/nouveau/nouveau_acpi.c

index 525744d593c1e981cc1039c79391f6aa38813b1d..3df56c7c692f1da37c648dc59734d751deb584d4 100644 (file)
@@ -245,7 +245,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;