forked from Imagelibrary/rtems
2009-11-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/tsmac/tsmac.c: Remove unused vars. Let rtems_tsmac_driver_attach return 1.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user