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:
Christos Margiolis 2025-12-06 15:28:08 +01:00
parent d20da5c973
commit 643a606fa2

View file

@ -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);
}