habanalabs: eliminate redundant else condition
If both parts of if-else are goto statements, we can remove the else and put the else goto statement after the if statement. Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Tomer Tayar <ttayar@habana.ai> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
This commit is contained in:
parent
f907af183b
commit
bd4ef37292
|
@ -686,8 +686,8 @@ static int cs_ioctl_default(struct hl_fpriv *hpriv, void __user *chunks,
|
|||
rc = -ENOMEM;
|
||||
if (is_kernel_allocated_cb)
|
||||
goto release_cb;
|
||||
else
|
||||
goto free_cs_object;
|
||||
|
||||
goto free_cs_object;
|
||||
}
|
||||
|
||||
job->id = i + 1;
|
||||
|
|
Loading…
Reference in New Issue