diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2021-01-29 11:21:01 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2021-01-29 11:21:01 +0000 |
commit | b61f9e2262c779f599c2d7505e3593b1dd0b246d (patch) | |
tree | 1dbb2632d98d23d7d2160195cba67f2156f014c5 /usr.bin/sndiod/dev.c | |
parent | ebee9ba15ca054b636c68ec99cc04e2c8c8005b2 (diff) |
Move the options list out of the device structure
No behavior change. Later this will ease applying the configuration of
one device to another by "just" swapping pointers.
Diffstat (limited to 'usr.bin/sndiod/dev.c')
-rw-r--r-- | usr.bin/sndiod/dev.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/sndiod/dev.c b/usr.bin/sndiod/dev.c index 83e577f7fa1..07b85f7eb55 100644 --- a/usr.bin/sndiod/dev.c +++ b/usr.bin/sndiod/dev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev.c,v 1.85 2021/01/29 10:55:19 ratchov Exp $ */ +/* $OpenBSD: dev.c,v 1.86 2021/01/29 11:21:00 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -1044,7 +1044,6 @@ dev_new(char *path, struct aparams *par, d->alt_list = NULL; dev_addname(d,path); d->num = dev_sndnum++; - d->opt_list = NULL; d->alt_num = -1; /* @@ -1501,8 +1500,6 @@ dev_del(struct dev *d) log_puts(": deleting\n"); } #endif - while (d->opt_list != NULL) - opt_del(d, d->opt_list); if (d->pstate != DEV_CFG) dev_close(d); for (p = &dev_list; *p != d; p = &(*p)->next) { |