Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b27516f authored by Chen Gang's avatar Chen Gang Committed by Rafael J. Wysocki
Browse files

ACPI / porocessor: Beautify code, pr->id is u32 which is never < 0



pr->id is u32 which never < 0, so remove the redundant pr->id < 0
check from acpi_processor_add().

[rjw: Changelog]
Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 5273a258
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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