hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/drivers/net/fddi/skfp/cfm.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /******************************************************************************
23 *
34 * (C)Copyright 1998,1999 SysKonnect,
45 * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
56 *
67 * See the file "skfddi.c" for further information.
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
128 *
139 * The information in this file is provided "AS IS" without warranty.
1410 *
....@@ -39,10 +35,6 @@
3935
4036 #define KERNEL
4137 #include "h/smtstate.h"
42
-
43
-#ifndef lint
44
-static const char ID_sccs[] = "@(#)cfm.c 2.18 98/10/06 (C) SK " ;
45
-#endif
4638
4739 /*
4840 * FSM Macros
....@@ -212,7 +204,6 @@
212204 {
213205 int state ; /* remember last state */
214206 int cond ;
215
- int oldstate ;
216207
217208 /* We will do the following: */
218209 /* - compute the variable WC_Flag for every port (This is where */
....@@ -226,7 +217,6 @@
226217 /* - change the portstates */
227218 cem_priv_state (smc, event);
228219
229
- oldstate = smc->mib.fddiSMTCF_State ;
230220 do {
231221 DB_CFM("CFM : state %s%s event %s",
232222 smc->mib.fddiSMTCF_State & AFLAG ? "ACTIONS " : "",
....@@ -254,18 +244,11 @@
254244 if (cond != smc->mib.fddiSMTPeerWrapFlag)
255245 smt_srf_event(smc,SMT_COND_SMT_PEER_WRAP,0,cond) ;
256246
257
-#if 0
258247 /*
259
- * Don't send ever MAC_PATH_CHANGE events. Our MAC is hard-wired
248
+ * Don't ever send MAC_PATH_CHANGE events. Our MAC is hard-wired
260249 * to the primary path.
261250 */
262
- /*
263
- * path change
264
- */
265
- if (smc->mib.fddiSMTCF_State != oldstate) {
266
- smt_srf_event(smc,SMT_EVENT_MAC_PATH_CHANGE,INDEX_MAC,0) ;
267
- }
268
-#endif
251
+
269252 #endif /* no SLIM_SMT */
270253
271254 /*