projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce781c3
)
scsi: elx: efct: Remove unnecessary memset() in efct_io()
author
Wan Jiabing
<wanjiabing@vivo.com>
Fri, 18 Mar 2022 14:52:20 +0000
(22:52 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:28:25 +0000
(23:28 -0400)
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>
drivers/scsi/elx/efct/efct_io.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/elx/efct/efct_io.c
b/drivers/scsi/elx/efct/efct_io.c
index
c3247b9
..
c612f0a
100644
(file)
--- 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;