scsi: be2iscsi: Remove redundant iscsi_wrb desc memset
authorJitendra Bhivare <jitendra.bhivare@broadcom.com>
Fri, 26 Aug 2016 09:39:07 +0000 (15:09 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 31 Aug 2016 02:25:48 +0000 (22:25 -0400)
commitbf9b7554f46c4736d72e61f076a2d91a4303d2ea
tree1464d816b46191d8b102466b78474007901616db
parentdeeea8edc746c68d7aa2282322b14be701ec11ee
scsi: be2iscsi: Remove redundant iscsi_wrb desc memset

alloc_wrb_handle already does memset zero of iscsi_wrb descriptor so
remove redundant memset in WRB submission paths.

Add pwrb_handle NULL check before memsett'ing pwrb.

Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/be2iscsi/be_main.c
drivers/scsi/be2iscsi/be_mgmt.c