Commit f61f1f86 authored by Tristan Gingold's avatar Tristan Gingold

netif: minor cleanup

remove unused function
parent df6e0c97
......@@ -22,14 +22,6 @@
static unsigned char netif_n_count = 0;
static struct wrc_netif_device netif_devs[WRC_NETIF_MAX_DEVICES];
struct wr_endpoint_device* netif_get_default_endpoint(void)
{
if( netif_n_count == 0 )
return NULL;
return netif_devs[0].ep;
}
int netif_register_device(const char *name, struct wr_endpoint_device* ep)
{
if( netif_n_count >= WRC_NETIF_MAX_DEVICES )
......
......@@ -10,8 +10,6 @@
#ifndef __WRC_NETIF_H
#define __WRC_NETIF_H
struct wrc_endpoint_dev;
#define NETIF_LINK_DOWN 0
#define NETIF_LINK_WENT_UP 1
#define NETIF_LINK_WENT_DOWN 2
......@@ -21,10 +19,9 @@ struct wrc_netif_device
{
const char* name;
struct wr_endpoint_device* ep;
int link_state;
unsigned char link_state;
};
struct wr_endpoint_device* netif_get_default_endpoint(void);
int netif_register_device( const char *name, struct wr_endpoint_device* ep );
int netif_get_device_count(void);
struct wrc_netif_device* netif_get_device(int idx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment