hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/sched/sch_sfq.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * net/sched/sch_sfq.c Stochastic Fairness Queueing discipline.
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
84 *
95 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
106 */
....@@ -190,7 +186,7 @@
190186 case TC_ACT_QUEUED:
191187 case TC_ACT_TRAP:
192188 *qerr = NET_XMIT_SUCCESS | __NET_XMIT_STOLEN;
193
- /* fall through */
189
+ fallthrough;
194190 case TC_ACT_SHOT:
195191 return 0;
196192 }
....@@ -353,7 +349,7 @@
353349 unsigned int hash, dropped;
354350 sfq_index x, qlen;
355351 struct sfq_slot *slot;
356
- int uninitialized_var(ret);
352
+ int ret;
357353 struct sk_buff *head;
358354 int delta;
359355