summaryrefslogtreecommitdiff
path: root/firmware/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-11-09 23:24:15 +0100
committerHarald Welte <laforge@gnumonks.org>2011-11-10 07:33:55 +0100
commit7db9f66c8b902f7c6417f06145d286bdd4ea83fe (patch)
tree6fdb9c8846466e6bfba6050c134e4a6900b24741 /firmware/src
parent1532eb49f4b85fbeb96db74689d99b968788952b (diff)
dfu: Use {} for possible empty if statement (in case debug is off)
src/dfu/dfu.c:853:23: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
Diffstat (limited to 'firmware/src')
-rw-r--r--firmware/src/dfu/dfu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/src/dfu/dfu.c b/firmware/src/dfu/dfu.c
index 682ce5e..f31b9f8 100644
--- a/firmware/src/dfu/dfu.c
+++ b/firmware/src/dfu/dfu.c
@@ -847,8 +847,10 @@ static __dfufunc void dfu_udp_ep0_handler(void)
break;
case STD_SET_CONFIGURATION:
DEBUGE("SET_CONFIG ");
- if (wValue)
+ if (wValue) {
DEBUGE("VALUE!=0 ");
+ }
+
cur_config = wValue;
udp_ep0_send_zlp();
pUDP->UDP_GLBSTATE =
personal git repositories of Harald Welte. Your mileage may vary