mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04: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
(cherry picked from commit 63a7c4be4a)
This commit is contained in:
parent
ddd779a062
commit
a1f89082dc
1 changed files with 2 additions and 1 deletions
|
|
@ -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