From 2cb55a232a5f09f43fb8df97bffe3f232b5275c7 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Thu, 23 Jan 2014 01:54:03 +0000 Subject: a lot of people have pointed out to me that taking a lock just to read an int isnt necessary. --- sys/dev/pci/if_myx.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys') 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 @@ -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); -- cgit v1.2.3