mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Correct usage of mtx_init() API. This is not a functional change since
the code happened to work because MTX_DEF and NULL are both defined as 0. Reviewed by: phk
This commit is contained in:
parent
2cf0d8a6ef
commit
b01a62069f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123272
@ -216,7 +216,7 @@ led_create(led_t *func, void *priv, char const *name)
|
||||
struct sbuf *sb;
|
||||
|
||||
if (next_minor == 0) {
|
||||
mtx_init(&led_mtx, "LED mtx", MTX_DEF, 0);
|
||||
mtx_init(&led_mtx, "LED mtx", NULL, MTX_DEF);
|
||||
timeout(led_timeout, NULL, hz / 10);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user