]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_fax.c: Remove redundant locking. 99/3699/1
authorRichard Mudgett <rmudgett@digium.com>
Thu, 15 Jan 2015 17:35:05 +0000 (17:35 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 25 Aug 2016 23:22:20 +0000 (18:22 -0500)
commitdd600f60be854fc8d2cc4408e03761318c16d698
tree2ab053855a591c089a5a2611e56c9d9f09ae798c
parent350c866eb57fa1156f5b8a2663a684f178c422c0
res_fax.c: Remove redundant locking.

When FAX was developed, apparently the faxregistry.container used to be a
linked list that was converted to an ao2 container.  Some of the
replacement ao2 container operations still had explicit lock/unlocks
around them.

Two off nominal code paths in res_fax.c unlock the channel even though the
routine did not lock the channel and other code paths in the routine do
not unlock the channel.

Review: https://reviewboard.asterisk.org/r/4340/

Backported from v13 revision fa80d9658df8aff71a8975ab7d1fe477ea3f99b9.

Change-Id: I59a1b95a91dac8375e0db568ddb217bcd6d7d2fa
res/res_fax.c