From: jsg Date: Mon, 14 Feb 2022 23:02:15 +0000 (+0000) Subject: fix cmalo_media_change() test X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=89c85dc44a47df801e75a4269c0f81b3a499244b;p=openbsd fix cmalo_media_change() test ok claudio@ deraadt@ --- 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))