mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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.com Signed-off-by: Haowen Bai <baihaowen@meizu.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
91fdd07888
commit
d627660c22
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue