projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91fdd07
)
scsi: elx: efct: Remove NULL check after calling container_of()
author
Haowen Bai
<baihaowen@meizu.com>
Tue, 17 May 2022 01:25:36 +0000
(09:25 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Fri, 20 May 2022 00:16:27 +0000
(20:16 -0400)
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>
drivers/scsi/elx/efct/efct_lio.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/elx/efct/efct_lio.c
b/drivers/scsi/elx/efct/efct_lio.c
index
8b004a5
..
be4b5c1
100644
(file)
--- a/
drivers/scsi/elx/efct/efct_lio.c
+++ b/
drivers/scsi/elx/efct/efct_lio.c
@@
-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;
}