From d69ede826141642ebdded24dae56ab7fc6a42ce1 Mon Sep 17 00:00:00 2001 From: mav Date: Mon, 3 Nov 2008 18:28:12 +0000 Subject: [PATCH] Remove " + 1". Thread ID can't be zero anyway while increment may give owerflow. --- sys/dev/acpica/Osd/OsdSchedule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpica/Osd/OsdSchedule.c b/sys/dev/acpica/Osd/OsdSchedule.c index 548a97dd949e..795de93e1801 100644 --- a/sys/dev/acpica/Osd/OsdSchedule.c +++ b/sys/dev/acpica/Osd/OsdSchedule.c @@ -191,5 +191,5 @@ AcpiOsGetThreadId(void) /* XXX do not add ACPI_FUNCTION_TRACE here, results in recursive call. */ /* Returning 0 is not allowed. */ - return (curthread->td_tid + 1); + return (curthread->td_tid); }