nvethernet: Fix coverity defect

Issue:
Unused value in code with below CID's

10166525
10166540

Fix:
Removed unused variable assignment.

Bug 3952896

Change-Id: I8fa305b26470c08d0eec0e83c8fc5e4fe15be49d
Signed-off-by: Sushil Kumar Singh <sushilkumars@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2860934
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Sushil Kumar Singh
2023-02-21 00:37:16 +05:30
committed by mobile promotions
parent 2edfbcdf39
commit 5267694f8e

View File

@@ -1755,7 +1755,6 @@ static void free_rx_dma_resources(struct osi_dma_priv_data *osi_dma,
} }
kfree(rx_ring); kfree(rx_ring);
osi_dma->rx_ring[i] = NULL; osi_dma->rx_ring[i] = NULL;
rx_ring = NULL;
} }
} }
#ifdef ETHER_PAGE_POOL #ifdef ETHER_PAGE_POOL
@@ -2013,7 +2012,6 @@ static void free_tx_dma_resources(struct osi_dma_priv_data *osi_dma,
} }
kfree(tx_ring); kfree(tx_ring);
tx_ring = NULL;
osi_dma->tx_ring[i] = NULL; osi_dma->tx_ring[i] = NULL;
} }
} }