Commit bd4ef372 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

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: default avatarkernel test robot <lkp@intel.com>
Reviewed-by: default avatarTomer Tayar <ttayar@habana.ai>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent f907af18
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -686,7 +686,7 @@ 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;
		}