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:
@@ -992,17 +992,10 @@ main(int argc, char *argv[])
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user