Skip to content

Commit

Permalink
net/qede: remove dead code
Browse files Browse the repository at this point in the history
[ upstream commit d123f83 ]

This patch removes logically dead code reported by coverity.

Coverity issue: 261777, 261778
Fixes: dd28bc8 ("net/qede: fix VF port creation sequence")

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Rasesh Mody <rmody@marvell.com>
  • Loading branch information
wyjwang authored and kevintraynor committed Aug 28, 2020
1 parent b136a5c commit 3eccb8b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/qede/qede_rxtx.c
Expand Up @@ -647,8 +647,6 @@ int qede_alloc_fp_resc(struct qede_dev *qdev)

for (sb_idx = 0; sb_idx < QEDE_RXTX_MAX(qdev); sb_idx++) {
fp = &qdev->fp_array[sb_idx];
if (!fp)
continue;
fp->sb_info = rte_calloc("sb", 1, sizeof(struct ecore_sb_info),
RTE_CACHE_LINE_SIZE);
if (!fp->sb_info) {
Expand Down Expand Up @@ -678,8 +676,6 @@ void qede_dealloc_fp_resc(struct rte_eth_dev *eth_dev)

for (sb_idx = 0; sb_idx < QEDE_RXTX_MAX(qdev); sb_idx++) {
fp = &qdev->fp_array[sb_idx];
if (!fp)
continue;
DP_INFO(edev, "Free sb_info index 0x%x\n",
fp->sb_info->igu_sb_id);
if (fp->sb_info) {
Expand Down

0 comments on commit 3eccb8b

Please sign in to comment.