nfctype1: Call callback function while freeing cookie
authorDorota Moskal <dorota.moskal@tieto.com>
Thu, 27 Sep 2012 11:22:17 +0000 (13:22 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 9 Oct 2012 21:48:07 +0000 (23:48 +0200)
commit03c0385dae8659c3cd90479409b8d32f520f75aa
tree225839a8e678fd46b21c80b0a4e9f9938ab6d408
parentc08f21e89008955b35cc1097b1e579b0c9a4fea1
nfctype1: 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/nfctype1.c