[ canfestival-Patches-3481330 ] Useless structure SHORT_CAN
authorEdouard Tisserant
Wed, 01 Feb 2012 18:07:04 +0100
changeset 691 17d9c0736935
parent 690 1c2cb6088050
child 692 6818cc935ab1
[ canfestival-Patches-3481330 ] Useless structure SHORT_CAN
[ canfestival-Patches-3481339 ] Useless local variable res in CanFestival\drivers\win32.c
drivers/win32/win32.c
include/can.h
--- 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;
 }
 
 /***************************************************************************/
--- 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