diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-01-23 01:54:03 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-01-23 01:54:03 +0000 |
commit | 2cb55a232a5f09f43fb8df97bffe3f232b5275c7 (patch) | |
tree | f5d9a40c1750a166e148a1bd1263b1eec85ff0cb /sys | |
parent | d59d4b1a165167c9b93709484d3a8bc00d11f6e4 (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.c | 5 |
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); |