mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
hyperv/hn: Don't return error when setting media to autoselect
Setting media to autoselect would always return EOPNOTSUPP. As autoselect is the only valid media, this change now returns success instead. PR: 264253 Reported by: Prakash Shiva <prakashs0234@gmail.com> Reviewed by: Dexuan Cui <decui microsoft com>, whu Approved by: whu MFC after: 2 weeks
This commit is contained in:
parent
220ee18f19
commit
63a7c4be4a
|
@ -1103,7 +1103,8 @@ static int
|
|||
hn_ifmedia_upd(if_t ifp __unused)
|
||||
{
|
||||
|
||||
return EOPNOTSUPP;
|
||||
/* Ignore since autoselect is the only defined and valid media */
|
||||
return (0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue