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
Differential D46833
sound: Simplify vchan_create() error paths christos on Sat, Sep 28, 3:12 PM. Authored by
Details
Instead of checking the value of "ret" multiple times, just set a goto While here, remove a redundant assignment to "d". Sponsored by: The FreeBSD Foundation
Diff Detail
|