Page MenuHomeFreeBSD

sound: Simplify vchan_create() error paths
ClosedPublic

Authored by christos on Sep 28 2024, 3:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 27, 11:52 AM
Unknown Object (File)
Nov 4 2025, 4:55 PM
Unknown Object (File)
Oct 26 2025, 2:28 AM
Unknown Object (File)
Oct 25 2025, 2:39 AM
Unknown Object (File)
Oct 1 2025, 3:09 PM
Unknown Object (File)
Sep 8 2025, 3:42 AM
Unknown Object (File)
Aug 31 2025, 2:06 AM
Unknown Object (File)
Aug 1 2025, 10:49 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