Module Name: src Committed By: skrll Date: Sun Aug 28 09:48:12 UTC 2022
Modified Files: src/sys/dev/scsipi: if_se.c Log Message: se(4): don't set if_watchdog as it's not used. if_timer is never set in this driver and so if_watchdog will never be called. To generate a diff of this commit: cvs rdiff -u -r1.116 -r1.117 src/sys/dev/scsipi/if_se.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/scsipi/if_se.c diff -u src/sys/dev/scsipi/if_se.c:1.116 src/sys/dev/scsipi/if_se.c:1.117 --- src/sys/dev/scsipi/if_se.c:1.116 Thu Jul 7 06:11:28 2022 +++ src/sys/dev/scsipi/if_se.c Sun Aug 28 09:48:12 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: if_se.c,v 1.116 2022/07/07 06:11:28 skrll Exp $ */ +/* $NetBSD: if_se.c,v 1.117 2022/08/28 09:48:12 skrll Exp $ */ /* * Copyright (c) 1997 Ian W. Dall <ian.d...@dsto.defence.gov.au> @@ -59,7 +59,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_se.c,v 1.116 2022/07/07 06:11:28 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_se.c,v 1.117 2022/08/28 09:48:12 skrll Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -359,7 +359,7 @@ seattach(device_t parent, device_t self, ifp->if_softc = sc; ifp->if_start = se_ifstart; ifp->if_ioctl = se_ioctl; - ifp->if_watchdog = sewatchdog; + ifp->if_watchdog = NULL; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_extflags = IFEF_MPSAFE; IFQ_SET_READY(&ifp->if_snd); @@ -767,7 +767,7 @@ se_read(struct se_softc *sc, char *data, return (n); } - +#if 0 static void sewatchdog(struct ifnet *ifp) { @@ -778,6 +778,7 @@ sewatchdog(struct ifnet *ifp) se_reset(sc); } +#endif static void se_reset(struct se_softc *sc)