summaryrefslogtreecommitdiff
path: root/src/rfid_reader_openpcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rfid_reader_openpcd.c')
-rw-r--r--src/rfid_reader_openpcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rfid_reader_openpcd.c b/src/rfid_reader_openpcd.c
index 9f5517c..f439c04 100644
--- a/src/rfid_reader_openpcd.c
+++ b/src/rfid_reader_openpcd.c
@@ -95,7 +95,7 @@ static int openpcd_xcv(u_int8_t cmd, u_int8_t reg, u_int8_t val,
ret = openpcd_send_command(cmd, reg, val, len, data);
if (ret < 0)
return ret;
- if (ret < sizeof(sizeof(struct openpcd_hdr)))
+ if (ret < sizeof(struct openpcd_hdr))
return -EINVAL;
return openpcd_recv_reply();
personal git repositories of Harald Welte. Your mileage may vary