res_fax.c, res_fax_spandsp.c: Remove redundant locking.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 15 Jan 2015 17:36:37 +0000 (17:36 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 15 Jan 2015 17:36:37 +0000 (17:36 +0000)
commita8ea2f92873585e5c04a26ef7e6713c15db10e87
tree506f0d516b71cc5c040a9dad448eee511e14272c
parent9b1c36d3fad968d5937fa484dfa9b60c335c6194
res_fax.c, res_fax_spandsp.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.

Three off nominal code paths in res_fax.c and res_fax_spandsp.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/
........

Merged revisions 430687 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@430688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_fax.c
res/res_fax_spandsp.c