• Philippe Teuwen's avatar
    acr122_usb: fix compiler warnings & check return value · 70b0dffc
    Philippe Teuwen authored
    acr122_usb.c:570:3: warning: Null pointer passed as an argument to a 'nonnull' parameter
      memcpy(DRIVER_DATA(pnd)->apdu_frame.apdu_payload, data, data_len);
      ^                                                 ~~~~
    acr122_usb.c:738:3: warning: Value stored to 'offset' is never read
      offset += len;
      ^         ~~~
    acr122_usb.c:753:3: warning: Value stored to 'res' is never read
      res = acr122_usb_bulk_write(DRIVER_DATA(pnd), (unsigned char *) & (DRIVER_DATA(pnd)->tama_frame), res, 1000);
      ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    70b0dffc
Name
Last commit
Last update
cmake Loading commit data...
contrib Loading commit data...
debian Loading commit data...
examples Loading commit data...
include Loading commit data...
libnfc Loading commit data...
m4 Loading commit data...
test Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CMakeLists.txt Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
Doxyfile.in Loading commit data...
HACKING Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README-Windows.txt Loading commit data...
configure.ac Loading commit data...
libnfc.conf.sample Loading commit data...
libnfc.pc.in Loading commit data...
make_release.sh Loading commit data...
manual-test-results.txt Loading commit data...
mingw-cross-configure.sh Loading commit data...