History

qtnfmac: use alloc_netdev macro for single queue devices

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.

Roi L committed 8 months ago

Commit dee55bc1 parent 7c5c2b61 file · +2 −2Browse files

Unified · Split

drivers/net/wireless/quantenna/qtnfmac/core.c+2−2
@@ -452,8 +452,8 @@ int qtnf_core_net_attach(struct qtnf_wmac *mac, struct qtnf_vif *vif, · 451 unmodified lines
452 void *qdev_vif;452 void *qdev_vif;
453 int ret;453 int ret;
454 454
455 dev = alloc_netdev_mqs(sizeof(struct qtnf_vif *), name,455 dev = alloc_netdev(sizeof(struct qtnf_vif *), name,
456 name_assign_type, ether_setup, 1, 1);456 name_assign_type, ether_setup);
457 if (!dev)457 if (!dev)
458 return -ENOMEM;458 return -ENOMEM;
459 459