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)
commitbd4ef3729213280522694ff714e28192e486487d
tree89c75c5f4a88b9e0bdf564651e732a0773cbf42c
parentf907af183b8bf35393e3057204000c16d8cb9bbe
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