From 662c7128cdb5da9172d730170d25b3d47a685e11 Mon Sep 17 00:00:00 2001 From: simonb Date: Wed, 15 Oct 2003 07:18:17 +0000 Subject: [PATCH] Re-order a little so that there's no unreachable code in this block. --- sys/dev/ic/awi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/awi.c b/sys/dev/ic/awi.c index 9201dd39a18c..5db40e568aa6 100644 --- a/sys/dev/ic/awi.c +++ b/sys/dev/ic/awi.c @@ -1,4 +1,4 @@ -/* $NetBSD: awi.c,v 1.54 2003/10/13 08:10:48 dyoung Exp $ */ +/* $NetBSD: awi.c,v 1.55 2003/10/15 07:18:17 simonb Exp $ */ /*- * Copyright (c) 1999,2000,2001 The NetBSD Foundation, Inc. @@ -85,7 +85,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: awi.c,v 1.54 2003/10/13 08:10:48 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: awi.c,v 1.55 2003/10/15 07:18:17 simonb Exp $"); #include "opt_inet.h" #include "bpfilter.h" @@ -1640,9 +1640,9 @@ awi_lock(struct awi_softc *sc) * ioctl requests in progress. */ if (sc->sc_busy) { - return EWOULDBLOCK; if (sc->sc_invalid) return ENXIO; + return EWOULDBLOCK; } sc->sc_busy = 1; sc->sc_cansleep = 0;