]> Devoid-pointer.net GitWeb - omnibook.git/commitdiff
Patch from Danny Kukawka <dkukawka@suse.de>
authorJulien Valroff <julien@kirya.net>
Fri, 27 Feb 2009 17:55:11 +0000 (17:55 +0000)
committerJulien Valroff <julien@kirya.net>
Fri, 27 Feb 2009 17:55:11 +0000 (17:55 +0000)
fix compiler warning about use uninitialized variable on ix86

acpi.c
nbsmi.c

diff --git a/acpi.c b/acpi.c
index c6a45fff41c9732a4b848146a2ab68d7972f4952..db370da5c230b5cb1846359f4004796d45bac07b 100644 (file)
--- a/acpi.c
+++ b/acpi.c
@@ -330,7 +330,7 @@ static int get_bt_status(const struct acpi_backend_data *priv_data, unsigned int
 
 /*
  * Get the Bluetooth + Wireless status using the ANTR method
- * FIXME: what if ANTR and BTST disagree ? we thrust ANTR for now
+ * FIXME: what if ANTR and BTST disagree ? we trust ANTR for now
  */
 static int get_wireless_status(const struct acpi_backend_data *priv_data, unsigned int *state)
 {
diff --git a/nbsmi.c b/nbsmi.c
index 3be9cb99b9778064f35d414426312408c71142e9..4bf71431b0f415d0ddc0a4925688be5bec0466e6 100644 (file)
--- a/nbsmi.c
+++ b/nbsmi.c
@@ -127,9 +127,10 @@ static inline u32 ati_do_smi_call(u16 function)
 
 static inline u32 intel_do_smi_call(u16 function, struct pci_dev *lpc_bridge)
 {
-       u32 state, sci_en;
+       u32 state;
        unsigned long flags;
        u32 retval = 0;
+       u32 sci_en = 0;
 
        local_irq_save(flags);
        preempt_disable();