Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/scsipi se(4): don't set if_watchdog as it's not used.



details:   https://anonhg.NetBSD.org/src/rev/61cb392ba6e3
branches:  trunk
changeset: 369694:61cb392ba6e3
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Aug 28 09:48:12 2022 +0000

description:
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.

diffstat:

 sys/dev/scsipi/if_se.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r 8be023513d07 -r 61cb392ba6e3 sys/dev/scsipi/if_se.c
--- a/sys/dev/scsipi/if_se.c    Sun Aug 28 08:41:06 2022 +0000
+++ b/sys/dev/scsipi/if_se.c    Sun Aug 28 09:48:12 2022 +0000
@@ -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.dall%dsto.defence.gov.au@localhost>
@@ -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 @@
        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 @@
        return (n);
 }
 
-
+#if 0
 static void
 sewatchdog(struct ifnet *ifp)
 {
@@ -778,6 +778,7 @@
 
        se_reset(sc);
 }
+#endif
 
 static void
 se_reset(struct se_softc *sc)



Home | Main Index | Thread Index | Old Index