# HG changeset patch # User Edouard Tisserant # Date 1328116024 -3600 # Node ID 17d9c07369350ddf1df95f206de367dc14f9d8b1 # Parent 1c2cb6088050092328dd15c2df00e3fee76420e5 [ canfestival-Patches-3481330 ] Useless structure SHORT_CAN [ canfestival-Patches-3481339 ] Useless local variable res in CanFestival\drivers\win32.c diff -r 1c2cb6088050 -r 17d9c0736935 drivers/win32/win32.c --- a/drivers/win32/win32.c Sat Jan 21 19:32:58 2012 +0100 +++ b/drivers/win32/win32.c Wed Feb 01 18:07:04 2012 +0100 @@ -136,12 +136,11 @@ /***************************************************************************/ UNS8 canSend(CAN_PORT port, Message *m) { - UNS8 res = 1; //NOT OK if (port && (m_canSend != NULL)) { - res = m_canSend(((CANPort*)port)->fd, m); - } - return res; + return m_canSend(((CANPort*)port)->fd, m); + } + return 1; } /***************************************************************************/ diff -r 1c2cb6088050 -r 17d9c0736935 include/can.h --- a/include/can.h Sat Jan 21 19:32:58 2012 +0100 +++ b/include/can.h Wed Feb 01 18:07:04 2012 +0100 @@ -25,18 +25,6 @@ #include "applicfg.h" -/* -union SHORT_CAN { - struct { UNS8 b0,b1; } b; - UNS32 w; -}; -*/ -/* -typedef struct { - UNS32 w; -} SHORT_CAN; -*/ - /** * @brief The CAN message structure * @ingroup can