nouveau: initialise has_optimus variable.
Subsystems (3)
Dave Airlie
maintainerPATCH 1/1 nouveau: initialise has_optimus variable.
From: Dave Airlie <[email protected]>
We should initialise this to 0 really to avoid getting false positives.
Signed-off-by Dave Airlie <[email protected]>
--- drivers/gpu/drm/nouveau/nouveau_acpi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nouveau_acpi.c +1 -1
@@ -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;
Signature · 1 line
1.7.7.6
Quoted 5 lines · Dave Airlie
From: Dave Airlie <[email protected]>
We should initialise this to 0 really to avoid getting false positives.
Signed-off-by Dave Airlie <[email protected]>
Reviewed-by Adam Jackson <[email protected]>
- ajax