summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2014-01-23 01:54:03 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2014-01-23 01:54:03 +0000
commit2cb55a232a5f09f43fb8df97bffe3f232b5275c7 (patch)
treef5d9a40c1750a166e148a1bd1263b1eec85ff0cb /sys
parentd59d4b1a165167c9b93709484d3a8bc00d11f6e4 (diff)
a lot of people have pointed out to me that taking a lock just to read an
int isnt necessary.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_myx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/if_myx.c b/sys/dev/pci/if_myx.c
index 606fa95d880..19a7f23c32a 100644
--- a/sys/dev/pci/if_myx.c
+++ b/sys/dev/pci/if_myx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_myx.c,v 1.51 2014/01/23 01:51:53 dlg Exp $ */
+/* $OpenBSD: if_myx.c,v 1.52 2014/01/23 01:54:02 dlg Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
@@ -1620,10 +1620,7 @@ myx_intr(void *arg)
u_int if_flags;
int i;
- KERNEL_LOCK();
if_flags = ifp->if_flags;
- KERNEL_UNLOCK();
-
if (!ISSET(if_flags, IFF_RUNNING))
return (0);