mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
sndctl(8): Do not free and re-open device
There was a reason for this, but it does not apply anymore. Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54031
This commit is contained in:
parent
d20da5c973
commit
643a606fa2
1 changed files with 1 additions and 8 deletions
|
|
@ -992,17 +992,10 @@ next:
|
|||
argv++;
|
||||
}
|
||||
|
||||
free_dev(dp);
|
||||
|
||||
if (show) {
|
||||
/*
|
||||
* Re-read dev to reflect new state in case we changed some
|
||||
* property.
|
||||
*/
|
||||
dp = read_dev(path);
|
||||
print_dev(dp);
|
||||
free_dev(dp);
|
||||
}
|
||||
free_dev(dp);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue