aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/USBCore.cpp
diff options
context:
space:
mode:
authorMartino Facchin <m.facchin@arduino.cc>2015-06-05 17:51:09 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-07-16 13:12:14 +0200
commit15edf1c6c8de089fb37e9a7e560d922fe62822c5 (patch)
treefa3a659379f241c55f22cea784f865526dbfc07f /cores/arduino/USBCore.cpp
parentd3815e7e3666aea0c3f70481a03bf3467b188d7e (diff)
remove useless variable
Diffstat (limited to 'cores/arduino/USBCore.cpp')
-rw-r--r--cores/arduino/USBCore.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp
index 16e4a05..5f70d86 100644
--- a/cores/arduino/USBCore.cpp
+++ b/cores/arduino/USBCore.cpp
@@ -446,11 +446,10 @@ int USB_RecvControl(void* d, int len)
int SendInterfaces()
{
- int total = 0;
u8 interfaces = 0;
#ifdef CDC_ENABLED
- total = CDC_GetInterface(&interfaces);
+ CDC_GetInterface(&interfaces);
#endif
#ifdef PLUGGABLE_USB_ENABLED