mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvethernet: Fix coverity defect
Issue: Assigning value 0 to ret, but that stored value is overwritten before it can be used. Fix: Remove unused assignment to ret CID: 10166550 Bug 3952896 Change-Id: Ieb877e618ca252c218b338682ca02d44096c7a47 Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2942165 Reviewed-by: Narayan Reddy <narayanr@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
cec663aa8d
commit
4c0d72dba6
@@ -5676,7 +5676,6 @@ static int ether_parse_dt(struct ether_priv_data *pdata)
|
|||||||
&pdata->common_isr_cpu_id);
|
&pdata->common_isr_cpu_id);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
pdata->common_isr_cpu_id = ETHER_COMMON_IRQ_DEFAULT_CPU;
|
pdata->common_isr_cpu_id = ETHER_COMMON_IRQ_DEFAULT_CPU;
|
||||||
ret = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* any other invalid promiscuous mode DT value */
|
/* any other invalid promiscuous mode DT value */
|
||||||
|
|||||||
Reference in New Issue
Block a user