Remove " + 1".
Thread ID can't be zero anyway while increment may give owerflow.
This commit is contained in:
parent
3480dc7ca9
commit
d69ede8261
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user