projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e658624
)
nouveau: initialise has_optimus variable.
author
Dave Airlie
<airlied@redhat.com>
Wed, 2 May 2012 19:26:24 +0000
(20:26 +0100)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 3 May 2012 08:30:58 +0000
(09:30 +0100)
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>
drivers/gpu/drm/nouveau/nouveau_acpi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_acpi.c
b/drivers/gpu/drm/nouveau/nouveau_acpi.c
index 7814a760c16439e8d6a0c74da474b4a978ce9793..284bd25d5d2127a3d44f9d8efae7449b77edcfbd 100644
(file)
--- 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;