Remove unused softc pointer variable from the probe routine.
CID: 1560 Found by: Coverity Prevent (tm)
This commit is contained in:
parent
7c007dd329
commit
223eee05e4
@ -244,11 +244,8 @@ static int acpi_aiboost_fan_sysctl(SYSCTL_HANDLER_ARGS)
|
||||
static int
|
||||
acpi_aiboost_probe(device_t dev)
|
||||
{
|
||||
struct acpi_aiboost_softc *sc;
|
||||
int ret = ENXIO;
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
|
||||
if (ACPI_ID_PROBE(device_get_parent(dev), dev, abs_id)) {
|
||||
device_set_desc(dev, "ASUStek AIBOOSTER");
|
||||
ret = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user