summaryrefslogtreecommitdiff
path: root/openpcd/firmware/src/rc632.c
diff options
context:
space:
mode:
Diffstat (limited to 'openpcd/firmware/src/rc632.c')
-rw-r--r--openpcd/firmware/src/rc632.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/openpcd/firmware/src/rc632.c b/openpcd/firmware/src/rc632.c
index dea1470..d37a407 100644
--- a/openpcd/firmware/src/rc632.c
+++ b/openpcd/firmware/src/rc632.c
@@ -19,14 +19,14 @@
#include "pcd_enumerate.h"
#include "rc632.h"
-#define NOTHING {}
+#define NOTHING do {} while(0)
#if 0
#define DEBUGPSPI DEBUGP
#define DEBUGPSPIIRQ DEBUGP
#else
#define DEBUGPSPI(x, args ...) NOTHING
-#define DEBUGPSPIIRQ NOTHING
+#define DEBUGPSPIIRQ(x, args...) NOTHING
#endif
#if 0
@@ -336,7 +336,6 @@ static void rc632_irq(void)
irq_opcdh->cmd = OPENPCD_CMD_IRQ;
irq_opcdh->flags = 0x00;
irq_opcdh->reg = 0x07;
- irq_opcdh->len = 0x00;
irq_opcdh->val = cause;
req_ctx_set_state(irq_rctx, RCTX_STATE_UDP_EP3_PENDING);
personal git repositories of Harald Welte. Your mileage may vary