summaryrefslogtreecommitdiff
path: root/drivers/scsi/elx
diff options
context:
space:
mode:
authorWan Jiabing <wanjiabing@vivo.com>2022-03-18 17:52:20 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-04-26 06:28:25 +0300
commit507bd398a056c08d5618450db86bad69b02dde6b (patch)
tree1183e4492539363f950c8c89dcb20371fb90c3de /drivers/scsi/elx
parentce781c3f05cd93515e31091def848c134f5bb2f2 (diff)
downloadlinux-507bd398a056c08d5618450db86bad69b02dde6b.tar.xz
scsi: elx: efct: Remove unnecessary memset() in efct_io()
io->sgl is allocated by kzalloc(). The memory is set to zero. It is unnecessary to call memset again. Link: https://lore.kernel.org/r/20220318145230.1031-1-wanjiabing@vivo.com Signed-off-by: Wan Jiabing <wanjiabing@vivo.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/elx')
-rw-r--r--drivers/scsi/elx/efct/efct_io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/elx/efct/efct_io.c b/drivers/scsi/elx/efct/efct_io.c
index c3247b951a76..c612f0a48839 100644
--- a/drivers/scsi/elx/efct/efct_io.c
+++ b/drivers/scsi/elx/efct/efct_io.c
@@ -62,7 +62,6 @@ efct_io_pool_create(struct efct *efct, u32 num_sgl)
return NULL;
}
- memset(io->sgl, 0, sizeof(*io->sgl) * num_sgl);
io->sgl_allocated = num_sgl;
io->sgl_count = 0;