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:
Mark Peek 2024-03-13 16:53:07 -07:00
parent ddd779a062
commit a1f89082dc

View file

@ -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