All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: elx: efct: remove unnecessary memset in efct_io
@ 2022-03-18 14:52 Wan Jiabing
  2022-04-30  6:29   ` Christophe JAILLET
  2022-05-03  0:51 ` Martin K. Petersen
  0 siblings, 2 replies; 8+ messages in thread
From: Wan Jiabing @ 2022-03-18 14:52 UTC (permalink / raw)
  To: James Smart, Ram Vegesna, James E.J. Bottomley,
	Martin K. Petersen, Wan Jiabing, Daniel Wagner, linux-scsi,
	target-devel, linux-kernel

io->sgl is allocated by kzalloc(). The memory is set to zero.
It is unnecessary to call memset again.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 drivers/scsi/elx/efct/efct_io.c | 1 -
 1 file changed, 1 deletion(-)

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;
 
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-05-05  4:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-18 14:52 [PATCH] scsi: elx: efct: remove unnecessary memset in efct_io Wan Jiabing
2022-04-30  6:29 ` Christophe JAILLET
2022-04-30  6:29   ` Christophe JAILLET
2022-04-30  7:48   ` Finn Thain
2022-04-30  7:48     ` [cocci] " Finn Thain
2022-04-30  9:06     ` Christophe JAILLET
2022-04-30  9:06       ` [cocci] " Christophe JAILLET
2022-05-03  0:51 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.