Skip to contentSkip to conversation

drivers/acpi: beautify code, pr->id is u32 which is never < 0

PATCH New Chen Gang 1 participant 1 message Feb 27, 2013 ACPI

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 drivers/acpi: beautify code, pr->id is u32 which is never < 0

pr->id is u32 which never < 0

---
 drivers/acpi/processor_driver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/acpi/processor_driver.c +1 -1
index df34bd0..bec717f 100644
@@ -559,7 +559,7 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device)
 		return 0;
 #endif
 
-	BUG_ON((pr->id >= nr_cpu_ids) || (pr->id < 0));
+	BUG_ON(pr->id >= nr_cpu_ids);
 
 	/*
 	 * Buggy BIOS check
Signature · 1 line
1.7.7.6