From 89c85dc44a47df801e75a4269c0f81b3a499244b Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 14 Feb 2022 23:02:15 +0000 Subject: [PATCH] fix cmalo_media_change() test ok claudio@ deraadt@ --- sys/dev/pcmcia/if_malo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pcmcia/if_malo.c b/sys/dev/pcmcia/if_malo.c index 409ba82ca86..755ac994080 100644 --- a/sys/dev/pcmcia/if_malo.c +++ b/sys/dev/pcmcia/if_malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_malo.c,v 1.97 2022/01/09 05:42:58 jsg Exp $ */ +/* $OpenBSD: if_malo.c,v 1.98 2022/02/14 23:02:15 jsg Exp $ */ /* * Copyright (c) 2007 Marcus Glocker @@ -742,7 +742,7 @@ cmalo_media_change(struct ifnet *ifp) { int error; - if ((error = ieee80211_media_change(ifp) != ENETRESET)) + if ((error = ieee80211_media_change(ifp)) != ENETRESET) return (error); if (ifp->if_flags & (IFF_UP | IFF_RUNNING)) -- 2.20.1