Found by Coverity scan. Checks are useless
because at these code places err is always zero.
Fixes:
86d36773bd42 ("net/atlantic: implement firmware operations")
Cc: stable@dpdk.org
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
goto err_exit;
}
} while (sw.tid != fw.tid || 0xFFFFU == fw.len);
goto err_exit;
}
} while (sw.tid != fw.tid || 0xFFFFU == fw.len);
- if (err < 0)
- goto err_exit;
}
err = hw_atl_utils_fw_rpc_call(self, rpc_size);
}
err = hw_atl_utils_fw_rpc_call(self, rpc_size);
- if (err < 0)
- goto err_exit;