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.
Signed-off-by: Wenchao Hao
Reviewed-by: Wu Bo
Reviewed-by: Lee Duncan
---
drivers/scsi/libiscsi.c | 1 -
1 file changed, 1 deletion(-)
diff
On 3/16/22 4:02 AM, Wenchao Hao wrote:
> cc open-iscsi@googlegroups.com linux-s...@vger.kernel.org
>
> On 2022/3/17 6:09, Wenchao Hao wrote:
>> 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 a
cc open-iscsi@googlegroups.com linux-s...@vger.kernel.org
On 2022/3/17 6:09, Wenchao Hao wrote:
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.
Signed-off-by: Wenchao Hao
Reviewed-by: Wu B