nfctype3: Call callback function while freeing cookie
authorDorota Moskal <dorota.moskal@tieto.com>
Thu, 27 Sep 2012 11:22:21 +0000 (13:22 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 9 Oct 2012 21:48:07 +0000 (23:48 +0200)
commit78dfcf7a3cb733051cbe6c19e24a1329adc9362e
tree89dcf84e86b2ef96100a2c2209ea8b34efb95814
parentdc3682a6c708c56a51f243d408b0840f0e4d5835
nfctype3: Call callback function while freeing cookie

When each operation is finished (no matter if succeeded or not),
callback has to be called before returning. In some places it was,
but in other - not. Moving calling callback to cookie release
makes sure it is always called and shortens the source code.
plugins/nfctype3.c