From 494460017f228f1a3bd64dd1cf1a97811f6dd828 Mon Sep 17 00:00:00 2001 From: henning <> Date: Sun, 28 May 2006 16:39:12 +0000 Subject: [PATCH] do not bother with rmeoval events, we remove sensors whoch vanished or are not a timedelta sensor any more on query on the fly anyway --- src/usr.sbin/ntpd/sensors.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/usr.sbin/ntpd/sensors.c b/src/usr.sbin/ntpd/sensors.c index 32b8607a..39f861cb 100644 --- a/src/usr.sbin/ntpd/sensors.c +++ b/src/usr.sbin/ntpd/sensors.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sensors.c,v 1.8 2006/05/28 03:23:08 henning Exp $ */ +/* $OpenBSD: sensors.c,v 1.9 2006/05/28 16:39:12 henning Exp $ */ /* * Copyright (c) 2006 Henning Brauer @@ -212,16 +212,6 @@ sensor_hotplugevent(int fd) he.he_devid > 0) sensor_probe(he.he_devid); break; - case HOTPLUG_DEVDT: - if (he.he_devclass == DV_DULL && - he.he_devid > 0) { - struct ntp_sensor *s; - - s = sensor_byid(he.he_devid); - if (s != NULL) - sensor_remove(s); - } - break; default: /* ignore */ break; }