Page MenuHomeFreeBSD

sound: Simplify vchan_create() error paths
ClosedPublic

Authored by christos on Sep 28 2024, 3:12 PM.
Tags
None
Referenced Files
F109298616: D46833.id143866.diff
Mon, Feb 3, 5:59 AM
Unknown Object (File)
Mon, Jan 27, 4:53 PM
Unknown Object (File)
Fri, Jan 24, 5:08 AM
Unknown Object (File)
Fri, Jan 24, 12:53 AM
Unknown Object (File)
Fri, Jan 24, 12:44 AM
Unknown Object (File)
Dec 26 2024, 8:08 PM
Unknown Object (File)
Dec 22 2024, 9:56 AM
Unknown Object (File)
Dec 13 2024, 12:32 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