Commit d627660c authored by Haowen Bai's avatar Haowen Bai Committed by Martin K. Petersen

scsi: elx: efct: Remove NULL check after calling container_of()

container_of() will never return NULL.

Link: https://lore.kernel.org/r/1652750737-22673-1-git-send-email-baihaowen@meizu.comSigned-off-by: default avatarHaowen Bai <baihaowen@meizu.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 91fdd078
......@@ -370,9 +370,6 @@ static int efct_lio_get_cmd_state(struct se_cmd *cmd)
container_of(cmd, struct efct_scsi_tgt_io, cmd);
struct efct_io *io = container_of(ocp, struct efct_io, tgt_io);
if (!io)
return 0;
return io->tgt_io.state;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment