]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hinic3: Remove defensive txq_num check
authorFan Gong <gongfan1@huawei.com>
Thu, 29 Jan 2026 04:01:09 +0000 (12:01 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Jan 2026 02:50:07 +0000 (18:50 -0800)
commit34bef6a4960f7761bcf8bb8ef8cd6d0041ae0c69
treea1d61b7ad65d448f5e838d8860bbf97f99b81a63
parent738ff2d2f50221905c346b969aecc2fbaa5decaf
hinic3: Remove defensive txq_num check

Since commit 1f3838b84a63 ("hinic3: Add Rss function") nic_dev->num_txqs
cannot be zero in hinic3_alloc_txqs(). So remove the check for this case.

Link: https://lore.kernel.org/netdev/20250902180843.5ba05bf2@kernel.org/
Co-developed-by: Zhu Yikai <zhuyikai1@h-partners.com>
Signed-off-by: Zhu Yikai <zhuyikai1@h-partners.com>
Signed-off-by: Fan Gong <gongfan1@huawei.com>
Link: https://patch.msgid.link/c23daa9b79fa731c1caaec9b8245f6b2c4994afb.1769656467.git.zhuyikai1@h-partners.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c