Page MenuHomeFreeBSD

sound: Remove unncessary locking in sysctl_hw_snd_hwvol_mixer()
Needs ReviewPublic

Authored by christos on Sat, Aug 22, 1:43 PM.
Tags
None
Referenced Files
F172309043: D59109.diff
Thu, Sep 17, 3:38 PM
Unknown Object (File)
Wed, Sep 16, 6:17 AM
Unknown Object (File)
Mon, Sep 14, 12:26 AM
Unknown Object (File)
Sun, Sep 13, 4:15 PM
Unknown Object (File)
Sun, Sep 13, 3:15 PM
Unknown Object (File)
Sat, Sep 12, 11:47 PM
Unknown Object (File)
Sat, Sep 12, 11:47 PM
Unknown Object (File)
Sat, Sep 12, 11:10 AM
Subscribers

Details

Reviewers
markj
emaste
kib
Summary

The locking around strlcpy() was because of m->hwvol_mixer, but this is
just an int, so we don't need to lock in this case. Instead lock only
when m->hwvol_mixer is written.

While here, add parentheses around the returns.

Sponsored by: The FreeBSD Foundation
MFC after: 1 month

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75964
Build 72847: arc lint + arc unit