diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-24 06:42:40 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-24 06:42:40 +0000 |
commit | 68049df7fb82144fb3cd58e9c452303846a39614 (patch) | |
tree | 11edce0f18e94b6db673acd2992222de1d29766d /c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c | |
parent | 2009-11-24 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-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 '')
-rw-r--r-- | c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c | 7 |
1 files changed, 2 insertions, 5 deletions
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) |