mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: remove unwanted error code checking in common.netlist
Remove unwanted error checking in common.netlist to make branch coverage better. Jira NVGPU-4920 Change-Id: I73535102af6eb83d1ffb1d166b9fdbeaa6302b35 Signed-off-by: vinodg <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2286761 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
@@ -222,9 +222,8 @@ static bool nvgpu_netlist_handle_sw_bundles_region_id(struct gk20a *g,
|
||||
static bool nvgpu_netlist_handle_generic_region_id(struct gk20a *g,
|
||||
u32 region_id, u8 *src, u32 size,
|
||||
u32 *major_v, u32 *netlist_num,
|
||||
struct nvgpu_netlist_vars *netlist_vars, int *err_code)
|
||||
struct nvgpu_netlist_vars *netlist_vars)
|
||||
{
|
||||
int err = 0;
|
||||
bool handled = true;
|
||||
|
||||
switch (region_id) {
|
||||
@@ -252,8 +251,6 @@ static bool nvgpu_netlist_handle_generic_region_id(struct gk20a *g,
|
||||
break;
|
||||
}
|
||||
|
||||
*err_code = err;
|
||||
|
||||
return handled;
|
||||
}
|
||||
|
||||
@@ -429,8 +426,8 @@ static int nvgpu_netlist_handle_region_id(struct gk20a *g,
|
||||
}
|
||||
handled = nvgpu_netlist_handle_generic_region_id(g, region_id,
|
||||
src, size, major_v, netlist_num,
|
||||
netlist_vars, &err);
|
||||
if ((err != 0) || handled) {
|
||||
netlist_vars);
|
||||
if (handled) {
|
||||
goto clean_up;
|
||||
}
|
||||
#ifdef CONFIG_NVGPU_DEBUGGER
|
||||
|
||||
Reference in New Issue
Block a user