summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-11-24 06:42:40 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-11-24 06:42:40 +0000
commit68049df7fb82144fb3cd58e9c452303846a39614 (patch)
tree11edce0f18e94b6db673acd2992222de1d29766d /c
parent2009-11-24 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-68049df7fb82144fb3cd58e9c452303846a39614.tar.bz2
2009-11-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/tsmac/tsmac.c: Remove unused vars. Let rtems_tsmac_driver_attach return 1.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/lm32/ChangeLog2
-rw-r--r--c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c7
2 files changed, 4 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/lm32/ChangeLog b/c/src/lib/libbsp/lm32/ChangeLog
index be97a2bed9..bfce5a3af0 100644
--- a/c/src/lib/libbsp/lm32/ChangeLog
+++ b/c/src/lib/libbsp/lm32/ChangeLog
@@ -1,5 +1,7 @@
2009-11-24 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * shared/tsmac/tsmac.c: Remove unused vars.
+ Let rtems_tsmac_driver_attach return 1.
* shared/console/console.c: Use int as return type of
BSP_uart_polled_read.
diff --git a/c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c b/c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c
index a0eb06116e..6be2e74110 100644
--- a/c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c
+++ b/c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c
@@ -567,8 +567,6 @@ void tsmac_init(void *arg)
void tsmac_stop(struct ifnet *ifp)
{
- struct tsmac_softc *tsmac = ifp->if_softc;
-
/*
* Mask tsmac interrupts
*/
@@ -595,9 +593,6 @@ void tsmac_start(struct ifnet *ifp)
void tsmac_stats(struct tsmac_softc *tsmac)
{
- uint32_t data;
- int stat;
-
/*
* Update counters from TSMAC MIB counters
*/
@@ -791,6 +786,8 @@ int rtems_tsmac_driver_attach(struct rtems_bsdnet_ifconfig *config, int attachin
if_attach(ifp);
ether_ifattach(ifp);
+
+ return 1;
}
rtems_isr tsmac_interrupt_handler(rtems_vector_number vector)