mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user