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, Dec 26, 8:08 PM
Unknown Object (File)
Dec 22 2024, 9:56 AM
Unknown Object (File)
Dec 13 2024, 12:32 PM
Unknown Object (File)
Nov 14 2024, 12:35 PM
Unknown Object (File)
Nov 6 2024, 5:17 AM
Unknown Object (File)
Nov 5 2024, 7:02 PM
Unknown Object (File)
Oct 22 2024, 3:22 PM
Unknown Object (File)
Oct 22 2024, 3:00 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