forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/broadcom/b43/pio.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23
34 Broadcom B43 wireless driver
....@@ -6,20 +7,6 @@
67
78 Copyright (c) 2005-2008 Michael Buesch <m@bues.ch>
89
9
- This program is free software; you can redistribute it and/or modify
10
- it under the terms of the GNU General Public License as published by
11
- the Free Software Foundation; either version 2 of the License, or
12
- (at your option) any later version.
13
-
14
- This program is distributed in the hope that it will be useful,
15
- but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- GNU General Public License for more details.
18
-
19
- You should have received a copy of the GNU General Public License
20
- along with this program; see the file COPYING. If not, write to
21
- the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
22
- Boston, MA 02110-1301, USA.
2310
2411 */
2512
....@@ -307,7 +294,7 @@
307294 switch (queue_prio) {
308295 default:
309296 B43_WARN_ON(1);
310
- /* fallthrough */
297
+ fallthrough;
311298 case 0:
312299 q = dev->pio.tx_queue_AC_VO;
313300 break;
....@@ -778,7 +765,7 @@
778765 bool stop;
779766
780767 while (1) {
781
- stop = (pio_rx_frame(q) == 0);
768
+ stop = !pio_rx_frame(q);
782769 if (stop)
783770 break;
784771 cond_resched();