From 507bd398a056c08d5618450db86bad69b02dde6b Mon Sep 17 00:00:00 2001 From: Wan Jiabing Date: Fri, 18 Mar 2022 22:52:20 +0800 Subject: 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 Signed-off-by: Martin K. Petersen --- drivers/scsi/elx/efct/efct_io.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/scsi/elx') 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; -- cgit v1.2.3