From: Dave Airlie Date: Wed, 2 May 2012 19:26:24 +0000 (+0100) Subject: nouveau: initialise has_optimus variable. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=addde4ec31456c5f1e9b61aae3edcfeb0f338f87;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git 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 --- diff --git a/drivers/gpu/drm/nouveau/nouveau_acpi.c b/drivers/gpu/drm/nouveau/nouveau_acpi.c index 7814a760c164..284bd25d5d21 100644 --- a/drivers/gpu/drm/nouveau/nouveau_acpi.c +++ b/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;