Module Name:    src
Committed By:   bouyer
Date:           Wed Dec  5 10:38:22 UTC 2018

Modified Files:
        src/sys/dev/pci: mpii.c

Log Message:
There's no sensors for physical disks so don't try to detach them.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/pci/mpii.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/mpii.c
diff -u src/sys/dev/pci/mpii.c:1.17 src/sys/dev/pci/mpii.c:1.18
--- src/sys/dev/pci/mpii.c:1.17	Tue Dec  4 19:54:02 2018
+++ src/sys/dev/pci/mpii.c	Wed Dec  5 10:38:22 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: mpii.c,v 1.17 2018/12/04 19:54:02 bouyer Exp $ */
+/* $NetBSD: mpii.c,v 1.18 2018/12/05 10:38:22 bouyer Exp $ */
 /*	$OpenBSD: mpii.c,v 1.115 2018/08/14 05:22:21 jmatthew Exp $	*/
 /*
  * Copyright (c) 2010, 2012 Mike Belopuhov
@@ -20,7 +20,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpii.c,v 1.17 2018/12/04 19:54:02 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpii.c,v 1.18 2018/12/05 10:38:22 bouyer Exp $");
 
 #include "bio.h"
 
@@ -2003,8 +2003,6 @@ mpii_event_sas_work(struct work *wq, voi
 				if (!ISSET(dev->flags, MPII_DF_HIDDEN)) {
 					scsipi_target_detach(&sc->sc_chan,
 					    dev->slot, 0, DETACH_FORCE);
-					sysmon_envsys_sensor_detach(sc->sc_sme,
-					    &sc->sc_sensors[dev->slot]);
 				}
 
 				free(dev, M_DEVBUF);

Reply via email to