diff options
author | truckman <truckman@FreeBSD.org> | 2003-12-07 23:21:22 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2003-12-07 23:21:22 +0000 |
commit | b0593adf64aaaedb82017c14d05e1e2f25e58601 (patch) | |
tree | e24d261cca01150c03c57b497cd41bfece785f7d /sys/dev/led | |
parent | 87a37b565f34f80514db04e4ee3644fb3e4e50e7 (diff) | |
download | FreeBSD-src-b0593adf64aaaedb82017c14d05e1e2f25e58601.zip FreeBSD-src-b0593adf64aaaedb82017c14d05e1e2f25e58601.tar.gz |
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
Diffstat (limited to 'sys/dev/led')
-rw-r--r-- | sys/dev/led/led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/led/led.c b/sys/dev/led/led.c index 35a8c69..8299eb8 100644 --- a/sys/dev/led/led.c +++ b/sys/dev/led/led.c @@ -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); } |