freebsd_network: Cleanup around ifmedia handling.
* Remove unused variable.
* Use original value for IFM_AVALID, we do not need to remap this one.
(Actually we do not need to remap IFM_ACTIVE here either, but it makes
some things slightly easier to work with rather than remapping it
in a different location.)
This commit is contained in:
@@ -374,11 +374,10 @@ uint64_t ifmedia_baudrate(int);
|
||||
/*
|
||||
* Status bits
|
||||
*/
|
||||
#ifndef __HAIKU__
|
||||
#define IFM_AVALID 0x00000001 /* Active bit valid */
|
||||
#ifndef __HAIKU__
|
||||
#define IFM_ACTIVE 0x00000002 /* Interface attached to working net */
|
||||
#else
|
||||
#define IFM_AVALID 0x10000000 /* Active bit valid */
|
||||
#define IFM_ACTIVE 0x00800000 /* same as Haiku's */
|
||||
#endif
|
||||
|
||||
|
||||
@@ -299,7 +299,6 @@ compat_control(void *cookie, uint32 op, void *arg, size_t length)
|
||||
{
|
||||
struct ifmediareq mediareq;
|
||||
ether_link_state_t state;
|
||||
status_t status;
|
||||
|
||||
if (length < sizeof(ether_link_state_t))
|
||||
return EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user