]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libiscsi: Remove unnecessary memset() in iscsi_conn_setup()
authorWenchao Hao <haowenchao@huawei.com>
Thu, 17 Mar 2022 15:01:16 +0000 (11:01 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 30 Mar 2022 03:01:28 +0000 (23:01 -0400)
commit48e93f9c6e7eac53746d074b583492025bed6793
tree42461c6a88eea4ebd3e13f4b99d0ddec169a3d92
parentdbf54c0831b026840127f95498c8a1fc7a170475
scsi: libiscsi: Remove unnecessary memset() in iscsi_conn_setup()

iscsi_cls_conn is alloced by kzalloc(), the whole iscsi_cls_conn is zero
filled already including the dd_data. So it is unnecessary to call memset
again.

Link: https://lore.kernel.org/r/20220317150116.194140-1-haowenchao@huawei.com
Reviewed-by: Wu Bo <wubo40@huawei.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libiscsi.c