Page MenuHomeFreeBSD

sound: Simplify vchan_create() error paths
ClosedPublic

Authored by christos on Sep 28 2024, 3:12 PM.
Tags
None
Referenced Files
F153707346: D46833.id.diff
Thu, Apr 23, 2:29 AM
Unknown Object (File)
Mon, Apr 20, 3:03 AM
Unknown Object (File)
Sat, Apr 11, 10:27 PM
Unknown Object (File)
Fri, Apr 10, 4:22 PM
Unknown Object (File)
Mar 9 2026, 5:54 PM
Unknown Object (File)
Mar 8 2026, 6:28 PM
Unknown Object (File)
Mar 8 2026, 6:28 PM
Unknown Object (File)
Feb 26 2026, 5:12 PM
Subscribers

Details

Summary

Instead of checking the value of "ret" multiple times, just set a goto
label and jump there immediately in case of an error.

While here, remove a redundant assignment to "d".

Sponsored by: The FreeBSD Foundation
MFC after: 2 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable