hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/wireless/intersil/p54/main.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * mac80211 glue code for mac80211 Prism54 drivers
34 *
....@@ -10,10 +11,6 @@
1011 * Copyright 2004-2006 Jean-Baptiste Note <jbnote@gmail.com>, et al.
1112 * - stlc45xx driver
1213 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies).
13
- *
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License version 2 as
16
- * published by the Free Software Foundation.
1714 */
1815
1916 #include <linux/slab.h>
....@@ -414,12 +411,9 @@
414411 int ret;
415412
416413 mutex_lock(&priv->conf_mutex);
417
- if (queue < dev->queues) {
418
- P54_SET_QUEUE(priv->qos_params[queue], params->aifs,
419
- params->cw_min, params->cw_max, params->txop);
420
- ret = p54_set_edcf(priv);
421
- } else
422
- ret = -EINVAL;
414
+ P54_SET_QUEUE(priv->qos_params[queue], params->aifs,
415
+ params->cw_min, params->cw_max, params->txop);
416
+ ret = p54_set_edcf(priv);
423417 mutex_unlock(&priv->conf_mutex);
424418 return ret;
425419 }
....@@ -688,7 +682,7 @@
688682 * queues have already been stopped and no new frames can sneak
689683 * up from behind.
690684 */
691
- while ((total = p54_flush_count(priv) && i--)) {
685
+ while ((total = p54_flush_count(priv)) && i--) {
692686 /* waste time */
693687 msleep(20);
694688 }