]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
qtnfmac: use alloc_netdev macro for single queue devices
authorRoi L <roeilev321_@outlook.com>
Sat, 14 Mar 2026 16:08:49 +0000 (18:08 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 19 Mar 2026 08:08:09 +0000 (09:08 +0100)
alloc_netdev is a macro for single queue devices, so there's no need to
call alloc_netdev_mqs with a single tx/rx queue.

Signed-off-by: Roi L <roeilev321_@outlook.com>
Link: https://patch.msgid.link/SN6PR05MB58064E57FE979CE7B2BF7EF3DD42A@SN6PR05MB5806.namprd05.prod.outlook.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/quantenna/qtnfmac/core.c

index 0c106709ae29273037b82c0569aae06125abd957..0b5b60815c7fd88b05df4b01186c94958834e084 100644 (file)
@@ -452,8 +452,8 @@ int qtnf_core_net_attach(struct qtnf_wmac *mac, struct qtnf_vif *vif,
        void *qdev_vif;
        int ret;
 
-       dev = alloc_netdev_mqs(sizeof(struct qtnf_vif *), name,
-                              name_assign_type, ether_setup, 1, 1);
+       dev = alloc_netdev(sizeof(struct qtnf_vif *), name,
+                          name_assign_type, ether_setup);
        if (!dev)
                return -ENOMEM;