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)
Mon, Mar 9, 5:54 PM
Unknown Object (File)
Sun, Mar 8, 6:28 PM
Unknown Object (File)
Sun, Mar 8, 6:28 PM
Unknown Object (File)
Feb 26 2026, 5:12 PM
Unknown Object (File)
Feb 25 2026, 10:16 PM
Unknown Object (File)
Feb 8 2026, 3:01 AM
Unknown Object (File)
Feb 7 2026, 6:27 PM
Unknown Object (File)
Jan 31 2026, 1:09 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 59643
Build 56530: arc lint + arc unit