Page MenuHomeFreeBSD

sound: Simplify vchan_create() error paths
AcceptedPublic

Authored by christos on Sat, Sep 28, 3:12 PM.

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