Silence PVS-Studio warning (V595).

This commit is contained in:
Jung-uk Kim 2016-02-23 23:09:45 +00:00
parent 8444599e1e
commit 2f977ab449

View File

@ -434,9 +434,7 @@ acpi_ec_probe(device_t dev)
params->gpe_bit, (params->glk) ? ", GLK" : "",
ecdt ? ", ECDT" : "");
device_set_desc_copy(dev, desc);
}
if (ret > 0 && params)
} else
free(params, M_TEMP);
if (buf.Pointer)
AcpiOsFree(buf.Pointer);