]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: elx: efct: Remove unnecessary memset() in efct_io()
authorWan Jiabing <wanjiabing@vivo.com>
Fri, 18 Mar 2022 14:52:20 +0000 (22:52 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:28:25 +0000 (23:28 -0400)
commit922d639927aa9ef1182117d065abc0f433cf6dba
tree1183e4492539363f950c8c89dcb20371fb90c3de
parentda8a34b400de879ca07a06df9e87af7b8551d235
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>
drivers/scsi/elx/efct/efct_io.c