diff options
author | jkim <jkim@FreeBSD.org> | 2010-06-11 19:53:42 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-06-11 19:53:42 +0000 |
commit | c2f9691170d67a8e7516750a14b529ac4322c0f9 (patch) | |
tree | 3216203027a09e84c0cc15f3e623df5439ebc3c0 /sys/dev/acpi_support | |
parent | 43cad37f433a21222f0841a55be848bf1a9d15ec (diff) | |
download | FreeBSD-src-c2f9691170d67a8e7516750a14b529ac4322c0f9.zip FreeBSD-src-c2f9691170d67a8e7516750a14b529ac4322c0f9.tar.gz |
Remove unused assignment.
Found by: clang static analyzer
Found by: Coverity Prevent[tm] (CID 4537, 4538, 4539)
Diffstat (limited to 'sys/dev/acpi_support')
-rw-r--r-- | sys/dev/acpi_support/acpi_fujitsu.c | 4 | ||||
-rw-r--r-- | sys/dev/acpi_support/acpi_hp.c | 2 | ||||
-rw-r--r-- | sys/dev/acpi_support/acpi_ibm.c | 2 |
3 files changed, 0 insertions, 8 deletions
diff --git a/sys/dev/acpi_support/acpi_fujitsu.c b/sys/dev/acpi_support/acpi_fujitsu.c index 6628135..c825254 100644 --- a/sys/dev/acpi_support/acpi_fujitsu.c +++ b/sys/dev/acpi_support/acpi_fujitsu.c @@ -380,7 +380,6 @@ acpi_fujitsu_init(struct acpi_fujitsu_softc *sc) OID_AUTO, "fujitsu", CTLFLAG_RD, 0, ""); for (i = 0; sysctl_table[i].name != NULL; i++) { - exists = 0; switch(sysctl_table[i].method) { case METHOD_GMOU: exists = sc->gmou.exists; @@ -566,9 +565,6 @@ static uint8_t acpi_fujitsu_check_hardware(struct acpi_fujitsu_softc *sc) { int val; - struct acpi_softc *acpi_sc; - - acpi_sc = acpi_device_get_parent_softc(sc->dev); ACPI_SERIAL_ASSERT(fujitsu); /* save the hotkey bitmask */ diff --git a/sys/dev/acpi_support/acpi_hp.c b/sys/dev/acpi_support/acpi_hp.c index 83e4bf7..b0e85be 100644 --- a/sys/dev/acpi_support/acpi_hp.c +++ b/sys/dev/acpi_support/acpi_hp.c @@ -453,7 +453,6 @@ static int acpi_hp_attach(device_t dev) { struct acpi_hp_softc *sc; - struct acpi_softc *acpi_sc; devclass_t wmi_devclass; int arg; @@ -477,7 +476,6 @@ acpi_hp_attach(device_t dev) sc->cmi_order_size = -1; sc->verbose = 0; memset(sc->cmi_order, 0, sizeof(sc->cmi_order)); - acpi_sc = acpi_device_get_parent_softc(dev); if (!(wmi_devclass = devclass_find ("acpi_wmi"))) { device_printf(dev, "Couldn't find acpi_wmi devclass\n"); diff --git a/sys/dev/acpi_support/acpi_ibm.c b/sys/dev/acpi_support/acpi_ibm.c index 2b6ac5d..380f976 100644 --- a/sys/dev/acpi_support/acpi_ibm.c +++ b/sys/dev/acpi_support/acpi_ibm.c @@ -743,8 +743,6 @@ acpi_ibm_sysctl_set(struct acpi_ibm_softc *sc, int method, int arg) return (status); if (sc->cmos_handle) { - val = val_ec & IBM_EC_MASK_VOL; - Args.Count = 1; Args.Pointer = &Arg; Arg.Type = ACPI_TYPE_INTEGER; |