]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: eliminate redundant else condition
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 12 Aug 2020 07:19:28 +0000 (10:19 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 22 Sep 2020 15:49:50 +0000 (18:49 +0300)
commite7ee88eed77b46a827d6b8c4ebb1674bcb081ab1
tree89c75c5f4a88b9e0bdf564651e732a0773cbf42c
parent66b39c6533083860cc1abae17c0650b721778d65
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>
drivers/misc/habanalabs/common/command_submission.c