Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157566977
D56807.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56807.id.diff
View Options
diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -486,8 +486,7 @@
ACPI_OBJECT *detail;
ACPI_OBJECT *constraint_package;
- KASSERT(sc->constraints_populated == false,
- ("constraints already populated"));
+ KASSERT(!sc->constraints_populated, ("Constraints already populated"));
sc->constraint_count = object->Package.Count;
sc->constraints = malloc(sc->constraint_count * sizeof *sc->constraints,
@@ -548,8 +547,7 @@
struct acpi_spmc_constraint *constraint;
ACPI_OBJECT *name_obj;
- KASSERT(sc->constraints_populated == false,
- ("constraints already populated"));
+ KASSERT(!sc->constraints_populated, ("Constraints already populated"));
/*
* First element in the package is unknown.
@@ -658,7 +656,7 @@
{
bool violation = false;
- KASSERT(sc->constraints_populated, ("constraints not populated"));
+ KASSERT(sc->constraints_populated, ("Constraints not populated"));
for (size_t i = 0; i < sc->constraint_count; i++) {
struct acpi_spmc_constraint *constraint = &sc->constraints[i];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 23, 10:08 PM (15 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33015427
Default Alt Text
D56807.id.diff (1 KB)
Attached To
Mode
D56807: acpi_spmc(4): Constraints: Simplify some assertions
Attached
Detach File
Event Timeline
Log In to Comment