Skip to content

Commit

Permalink
target: Remove no-op conditional
Browse files Browse the repository at this point in the history
This does nothing, and there are many other places where
transport_cmd_check_stop_to_fabric()'s retval is not checked>, If we
wanted to check it here, we should probably do it those other places too.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
Andy Grover authored and Nicholas Bellinger committed Sep 11, 2015
1 parent 4824640 commit 06b967e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1741,8 +1741,7 @@ void transport_generic_request_failure(struct se_cmd *cmd,

check_stop:
transport_lun_remove_cmd(cmd);
if (!transport_cmd_check_stop_to_fabric(cmd))
;
transport_cmd_check_stop_to_fabric(cmd);
return;

queue_full:
Expand Down

0 comments on commit 06b967e

Please sign in to comment.