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, May 21, 4:13 PM
Unknown Object (File)
Mon, May 4, 3:34 PM
Unknown Object (File)
Thu, Apr 30, 8:14 AM
Unknown Object (File)
Thu, Apr 30, 8:02 AM
Unknown Object (File)
Wed, Apr 29, 7:30 PM
Unknown Object (File)
Apr 29 2026, 10:51 AM
Unknown Object (File)
Apr 28 2026, 2:50 AM
Unknown Object (File)
Apr 24 2026, 4:27 AM
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