adapter: Refactor function near_adapter_send
authorWiktor Lawski <wiktor.lawski@tieto.com>
Thu, 27 Sep 2012 08:31:26 +0000 (10:31 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 9 Oct 2012 15:52:16 +0000 (17:52 +0200)
commitfce1942401571af6ae1ca9e93081a8dee1fa306e
tree3747247e6ed407ef3a8cf743985f79f6f81ce644
parent6134061b9cc34bc8472be985e2bded59e907a889
adapter: Refactor function near_adapter_send

Now this function will release allocated data using callback, so it will
be unnecessary to check its returned error code (if callback was passed).
Main reasons to prepare this change were improvement of code readability
and removing error prone code paths.
include/adapter.h
plugins/mifare.c
plugins/nfctype1.c
plugins/nfctype2.c
plugins/nfctype3.c
plugins/nfctype4.c
src/adapter.c